Ecclesiastes 3:17

3:17 I thought to myself, “God will judge both the righteous and the wicked;

for there is an appropriate time for every activity,

and there is a time of judgment for every deed.

Ecclesiastes 7:15

Exceptions to the Law of Retribution

7:15 During the days of my fleeting life I have seen both of these things:

Sometimes a righteous person dies prematurely in spite of his righteousness,

and sometimes a wicked person lives long in spite of his evil deeds.

Ecclesiastes 8:8

8:8 Just as no one has power over the wind to restrain it,

so no one has power over the day of his death.

Just as no one can be discharged during the battle,

so wickedness cannot rescue the wicked.

Ecclesiastes 8:10

Contradictions to the Law of Retribution

8:10 Not only that, but I have seen the wicked approaching and entering the temple,

and as they left the holy temple, they

boasted in the city that they had done so.

This also is an enigma.