5Then Shemaiah the prophet came to Rehoboam and the leaders of Judah, who were gathered together in Jerusalem because of Shishak, and said to them, “Thus says the Lord: ‘You have forsaken Me, and therefore I also have left you in the hand of Shishak.’ ”
6So the leaders of Israel and the king humbled themselves; and they said, “The Lord is righteous.”
7Now 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. My wrath shall not be poured out on Jerusalem by the hand of Shishak.
8Nevertheless they will be his servants, that they may distinguish My service from the service of the kingdoms of the nations.”