When the rule of Rehoboam was established and he grew strong, he abandoned the law of the Lord, he and all Israel with him.
In the fifth year of King Rehoboam, because they had been unfaithful to the Lord, King Shishak of Egypt came up against Jerusalem
with twelve hundred chariots and sixty thousand cavalry. A countless army came with him from Egypt—Libyans, Sukkiim, and Ethiopians.
References for 2 Chronicles 12:3
He took the fortified cities of Judah and came as far as Jerusalem.
Then the prophet Shemaiah came to Rehoboam and to the officers 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."
Then the officers of Israel and the king humbled themselves and said, "The Lord is in the right."
When the Lord saw that they humbled themselves, the word of the Lord came to Shemaiah, saying: "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.