After Rehoboam’s position as king was established and he had become strong, he and all Israel with him abandoned the law of the LORD.
Because they had been unfaithful to the LORD, Shishak king of Egypt attacked Jerusalem in the fifth year of King Rehoboam.
With twelve hundred chariots and sixty thousand horsemen and the innumerable troops of Libyans, Sukkites and Cushites that came with him from Egypt,
he captured the fortified cities of Judah and came as far as Jerusalem.
Then the prophet Shemaiah came to Rehoboam and to the leaders of Judah who had assembled in Jerusalem for fear of Shishak, and he said to them, “This is what the LORD says, ‘You have abandoned me; therefore, I now abandon you to Shishak.’ ”
The leaders of Israel and the king humbled themselves and said, “The LORD is just.”
When the LORD saw that they humbled themselves, this word of the LORD came to Shemaiah: “Since they have humbled themselves, I will not destroy them but will soon give them deliverance. My wrath will not be poured out on Jerusalem through Shishak.