2 Chronicles 12:8
Nevertheless they shall be his servants; that they may know my service, and the service of the kingdoms of the countries. Nevertheless they shall be his servants; that they may know my service, and the service of the kingdoms of the countries.
After Rehoboam and all Judah forsook the law of the Lord, Shishak king of Egypt was permitted to come against Jerusalem in the fifth year of Rehoboam with twelve hundred chariots and sixty thousand horsemen and a host without number. He took the fortified cities belonging to Judah and came to Jerusalem itself. At that time the prophet Shemaiah declared to them that because they had forsaken God they were left in the hand of Shishak.
When their losses led them to recognize the hand of God against them, they humbled themselves and declared the Lord righteous. Because of that humbling God granted them some deliverance and would not destroy them altogether. He refused to pour out His wrath upon Jerusalem by the hand of Shishak.
Even so they were left to be servants to Shishak. This was appointed so that by contrast they might know and learn the difference between His service and the service of the kingdoms of the countries and of foreign lands.
That servitude meant Shishak took away the treasures of the house of the Lord and the treasures of the king's house, including the shields of gold that Solomon had made. In their place Rehoboam made shields of brass and committed them to the hands of the chief of the guard, who fetched them whenever the king went into the house of the Lord. Because he humbled himself the wrath of God was turned away from him so that He would not destroy him altogether, and also in Judah things went well.