God did not allow the apostasy of Judah's ruler to remain unpunished. "In the fifth year of King Rehoboam Shishak king of Egypt came up against Jerusalem, because they had transgressed against the Lord, with twelve hundred chariots, and three score thousand horsemen: and the people were without number that came with him out of Egypt....And he took the fenced cities which pertained to Judah, and came to Jerusalem.
"Then came Shemaiah the prophet to Rehoboam, and to the princes of Judah, that were gathered together to
Jerusalem because of Shishak, and said unto them, Thus saith the Lord, Ye have forsaken Me, and therefore have I also left you in the hand of Shishak." Verses 2-5.
The people had not yet gone to such lengths in apostasy that they despised the judgments of God. In the losses sustained by the invasion of Shishak, they recognized the hand of God and for a time humbled themselves. "The Lord is righteous," they acknowledged.
"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. Nevertheless they shall be his servants; that they may know My service, and the service of the kingdoms of the countries.
"So Shishak king of Egypt came up against Jerusalem, and took away the treasures of the house of the Lord, and the treasures of the king's house; he took all: he carried away also the shields of gold which Solomon had made. Instead of which King Rehoboam made shields of brass, and committed them to the hands of the chief of the guard, that kept the entrance of the king's house.... And when he humbled himself, the wrath of the Lord turned from him, that He would not destroy him altogether: and also in Judah things went well." Verses 6-12.
But as the hand of affliction was removed, and the nation prospered once more, many forgot their fears and turned again to idolatry. Among these was King Rehoboam himself. Though humbled by the calamity that had befallen
him, he failed to make this experience a decisive turning point in his life. Forgetting the lesson that God had endeavored to teach him, he relapsed into the sins that had brought judgments on the nation. After a few inglorious years, during which the king "did evil, because he prepared not his heart to seek the Lord," "Rehoboam slept with his fathers, and was buried in the City of David: and Abijah his son reigned in his stead." Verses 14, 16.