1 Kings 12:21-24 Holman Christian Standard Bible (HCSB)
21 When Rehoboam arrived in Jerusalem, he mobilized 180,000 choice warriors from the entire house of Judah and the tribe of Benjamin to fight against the house of Israel to restore the kingdom to Rehoboam son of Solomon. 22 But a revelation from God came to Shemaiah, the man of God: 23 “Say to Rehoboam son of Solomon, king of Judah, to the whole house of Judah and Benjamin, and to the rest of the people, 24 ‘This is what the Lord says: You are not to march up and fight against your brothers, the Israelites. Each of you must return home, for I have done this.’”
So they listened to what the Lord said and went back as He had told them.