When Rehoboam arrived at Jerusalem, he mobilized the armies of Judah and Benjamin -- 180,000 select troops -- to fight against the army of Israel and to restore the kingdom to himself.
But the LORD said to Shemaiah, the man of God,
"Say to Rehoboam son of Solomon, king of Judah, and to all the Israelites in Judah and Benjamin:
'This is what the LORD says: Do not fight against your relatives. Go back home, for what has happened is my doing!'" So they obeyed the message of the LORD and did not fight against Jeroboam.
Rehoboam remained in Jerusalem and fortified various cities for the defense of Judah.
He built up Bethlehem, Etam, Tekoa,
Beth-zur, Soco, Adullam,
Gath, Mareshah, Ziph,
Adoraim, Lachish, Azekah,
Zorah, Aijalon, and Hebron. These became the fortified cities of Judah and Benjamin.
Rehoboam strengthened their defenses and stationed commanders in them. In each of them, he stored supplies of food, olive oil, and wine.
He also put shields and spears in these towns as a further safety measure. So only Judah and Benjamin remained under his control.
But all the priests and Levites living among the northern tribes of Israel sided with Rehoboam.
The Levites even abandoned their homes and property and moved to Judah and Jerusalem, because Jeroboam and his sons would not allow them to serve the LORD as priests.
Jeroboam appointed his own priests to serve at the pagan shrines, where they worshiped the goat and calf idols he had made.
From all over Israel, those who sincerely wanted to worship the LORD, the God of Israel, followed the Levites to Jerusalem, where they could offer sacrifices to the LORD, the God of their ancestors.
This strengthened the kingdom of Judah, and for three years they supported Rehoboam son of Solomon and earnestly sought to obey the LORD as they had done during the reigns of David and Solomon.
Rehoboam married his cousin Mahalath, the daughter of David's son Jerimoth and of Abihail, the daughter of Eliab. (Eliab was one of David's brothers, a son of Jesse.)
Mahalath had three sons -- Jeush, Shemariah, and Zaham.
Later Rehoboam married another cousin, Maacah, the daughter of Absalom. Maacah gave birth to Abijah, Attai, Ziza, and Shelomith.
Rehoboam loved Maacah more than any of his other wives and concubines. In all, he had eighteen wives and sixty concubines, and they gave birth to twenty-eight sons and sixty daughters.
Rehoboam made Maacah's son Abijah chief among the princes, making it clear that he would be the next king.
Rehoboam also wisely gave responsibilities to his other sons and stationed them in the fortified cities throughout the land of Judah and Benjamin. He provided them with generous provisions and arranged for each of them to have several wives.