The Old Testament is replete with innumerable stories of the Chosen People receiving God's blessings, vowing "religiously" never to forget and stray, and then resolutely turning their backs on Him--all as types for us to see our own personal weakness and ultimate need for Him.
"But God found fault with the people and said:
"The time is coming, declares the Lord, when I will make a new covenant
with the house of Israel and with the house of Judah.
It will not be like the covenant I made with their forefathers
when I took them by the hand to lead them out of Egypt,
because they did not remain faithful to my covenant,
and I turned away from them, declares the Lord. ""
Hebrews 8:8-9
Cliff Notes version of the historiograhy of the Old Testament:
God’s people are in suffering, and call out to Him for deliverance
God grants them deliverance, and restores them to prosperity
The people turn away from God, become destitute and suffer
Repeat
Some things don’t seem to change.