This is an admonition to myself as much as anyone else. It is in our nature to stray away from seeking God when things are going well. There is a clear example seen in the life of King Asa. Asa was a king of Judah. He was one that God said did right in the eyes of the Lord.
He had been zealous for the Lord tearing down Asherah poles (poles representing a false god), and other places of idol worship during his time. He was so zealous that he even demoted his grandmother because she still worshipped Asherah, and he decreed it the law of the land that all residents of Judah were to worship the Lord the true and living God.
Because of his devout heart toward seeking the Lord, God gave him rest from all of his enemies for 35 years. For 35 years he did not have to fight any wars. However, during the 36th year, the Israelite army begin to prepare to go to war against Asa.
Asa, at that point, made an agreement with an army who became his ally. The agreement with the allying army caused the Israelite army to back off. After all of this had taken place, a prophet named Hanani came to Asa with the below message.