And when the LORD saw that they humbled themselves, the word of the LORD came to Shemaiah, saying, They have humbled themselves; therefore I will not destroy them, but I will grant them some deliverance; and my wrath shall not be poured out upon Jerusalem by the hand of Shishak. 8Nevertheless they shall be his servants; that they may know my service, and the service of the kingdoms of the countries." (2 Chronicales 12: 7-8)
The people of Judah were held accountable for abandoning the law of the Lord.
When they humbled themselves and recognized that the Lord is righteous, and only He, then God's wrath was turned.
We need His righteousness more than anything else, and we receive this gift when we believe on Jesus Christ, who became sin that we would become the righteousness of God in Christ (2 Corinthians 5: 21)
Part of being humble is allowing God to serve us, to work in our lives.
God clearly state that they would be servants of the King of Egypt so that they would know God's service.
Man just will not relax, will not rest and let Him work.
Yet time and again, God would offer to His people Israel to rest, that He may work:
"Thus saith the LORD, The people which were left of the sword found grace in the wilderness; even Israel, when I went to cause him to rest." (Jeremiah 31: 2)
"Come unto me, all ye that labour and are heavy laden, and I will give you rest." (Matthew 11: 28)
Jesus Christ is our rest, for He has fulfilled all things for us by dying on the Cross, rising from the dead, and representing us at the right hand of God the Father as our High priest forever.
He wants us to receive from Him:
"For even the Son of man came not to be ministered unto, but to minister, and to give his life a ransom for many." (Mark 11: 45)
We are humble when we allow God to serve us.