Ezekiel 6:9ra
"Then those of you who escape will remember Me among the nations to which they will be carried captive, how I have been hurt by their adulterous hearts which turned away from Me, and by their eyes which played the harlot after their idols; and they will loathe themselves in their own sight for the evils which they have committed, for all their abominations.
Exiles loathe themselves for the evils they committed through idolatry.
Deuteronomy 31:17ra
"Then My anger will be kindled against them in that day, and I will forsake them and hide My face from them, and they will be consumed, and many evils and troubles will come upon them; so that they will say in that day, 'Is it not because our God is not among us that these evils have come upon us?'
Evils and troubles come when God hides His face from His people.
Deuteronomy 31:21ra
"Then it shall come about, when many evils and troubles have come upon them, that this song will testify before them as a witness (for it shall not be forgotten from the lips of their descendants); for I know their intent which they are developing today, before I have brought them into the land which I swore."
Moses' song will testify when evils and troubles come upon Israel.