Then listen vv. 37-38,
Their heart was not steadfast toward him; they were not faithful to his covenant. Yet he, being compassionate, atoned for their iniquity and did not destroy them; he restrained his anger often and did not stir up all his wrath.
God atoned for their sin and did not destroy them when He had every right to do so. Why? Because of his covenant and promise with their forefathers--Abraham, Isaac, and Jacob. Because of his promise to Adam and Eve of One who would come from the woman and crush the head of Satan. That One would come from Israel and so God was faithful to preserve a remnant of His people and not destroy them completely so that the One would come to crush Satan.
The One was God's Son, Jesus Christ. But in order for Him to crush Satan and his works of sin and deception God had to crush His Son. "It pleased the LORD to bruise him." God did not stir up all of his wrath against Israel and destroy them and unleash the full force of His anger against them because that would one day be reserved for His Son, Jesus Christ.
Jesus Christ on the cross bore the brunt of the unrestrained anger and fully stirred up wrath of God against the sin of all who would repent from their sin and believe in Him.
That is amazing and amazing grace for which I and no one deserves.