1 When the rule of Rehoboam was established and he was strong, he abandoned the law of the LORD, and all Israel with him.
2 In the fifth year of King Rehoboam, because they had been unfaithful to the LORD, Shishak king of Egypt came up against Jerusalem 3with 1,200 chariots and 60,000 horsemen. And the people were without number who came with him from Egypt— Libyans, Sukkiim, and Ethiopians. 4And he took the fortified cities of Judah and came as far as Jerusalem.12And when he humbled himself the wrath of the LORD turned from him, so as not to make a complete destruction. Moreover, conditions were good in Judah.5Then Shemaiah the prophet came to Rehoboam and to the princes of Judah, who had gathered at Jerusalem because of Shishak, and said to them, "Thus says the LORD, 'You abandoned me, so I have abandoned you to the hand of Shishak.'"9 So Shishak king of Egypt came up against Jerusalem. He took away the treasures of the house of the LORD and the treasures of the king’s house. He took away everything. He also took away the shields of gold that Solomon had made, 10and King Rehoboam made in their place shields of bronze and committed them to the hands of the officers of the guard, who kept the door of the king’s house. 11And as often as the king went into the house of the LORD, the guard came and carried them and brought them back to the guardroom.6Then the princes of Israel and the king humbled themselves and said, "The LORD is righteous."7When the LORD saw that they humbled themselves, the word of the LORD came to Shemaiah: "They have humbled themselves. I will not destroy them, but I will grant them some deliverance, and my wrath shall not be poured out on Jerusalem by the hand of Shishak. 8Nevertheless, they shall be servants to him, that they may know my service and the service of the kingdoms of the countries."
Having studied 2 Chronicles a bit recently it was great to look at this - and see this focus on the LORD's who does right. He who always acts in accord with his promises - promises that all find their answer in Jesus. He who is the temple towards all confession must be made. He who is the sacrifice that atones for sin. He who is our perfect king. Another failing king but one who does do what God asked (after he'd sinned) - he does humble himself. I'm no Rehoboam, but I do need the grace that comes to the humble because of the promises of God.