Time and time again, his people rebelled against God yet he forgave them because as the Psalmist described it as his unfailing love Psalm Chapter 107:8,15.
Love and obey God, gets blessings. Hate and rebellion against God leads to darkness despair and heartache. Psalm 107:10-12
Psalms 107:8,11,15
[8]They must thank the Lord for his constant love, for the wonderful things he did for them.
[11]because they had rebelled against the commands of Almighty God and had rejected his instructions.
[15]They must thank the Lord for his constant love, for the wonderful things he did for them