2 Chronicles 12:4

And he took the fenced cities which pertained to Judah, and came to Jerusalem.

Shishak, king of Egypt, captured the fortified cities belonging to Judah and then advanced to Jerusalem. This occurred during the reign of Rehoboam. The invasion was a judgment from the Lord because Judah had turned away from Him and transgressed against Him. The losses suffered in the invasion led the people to recognize God's judgment and to humble themselves.