Psalms 36:6

6 aYour righteousness is like the mountains of God;
byour judgments are like the great deep;
man and beast you csave, O Lord.

Ecclesiastes 8:14

Man Cannot Know God’s Ways

14There is a vanity that takes place on earth, that there are righteous people dto whom it happens according to the deeds of the wicked, and there are wicked people eto whom it happens according to the deeds of the righteous. I said that this also is vanity.

Ecclesiastes 9:1-2

Death Comes to All

1But all this I laid to heart, examining it all, fhow the righteous and the wise and their deeds are gin the hand of God. Whether it is love or hate, man does not know; both are before him. 2 hIt is the same for all, since ithe same event happens to the righteous and the wicked, to the good and the evil,
Septuagint, Syriac, Vulgate; Hebrew lacks  and the evil
to the clean and the unclean, to him who sacrifices and him who does not sacrifice. As the good one is, so is the sinner, and he who kswears is as he who shuns an oath.
Copyright information for ESV