Because Rehoboam humbled himself, the anger of the LORD turned away from him, and He did not destroy him completely. Indeed, conditions were good in Judah.
Jewish Publication Society of America Version (JPS1917) - 2 Chronicles 12:12 >And when he humbled himself, the anger of the LORD turned from him, that He would not destroy him altogether; and moreover in Judah there were good things found.