In the thirty-sixth year of the reign of Asa, Baasha king of Israel went up against Judah and built Ramah, that he might permit no one to go out or come in to Asa king of Judah. Then Asa took silver and gold from the treasures of the house of the LORD and the king's house and sent them to Ben-hadad king of Syria, who lived in Damascus, saying, "There is a covenant between me and you, as there was between my father and your father. Behold, I am sending to you silver and gold. Go, break your covenant with Baasha king of Israel, that he may withdraw from me." And Ben-hadad listened to King Asa and sent the commanders of his armies against the cities of Israel, and they conquered Ijon, Dan, Abel-maim, and all the store cities of Naphtali. And when Baasha heard of it, he stopped building Ramah and let his work cease. Then King Asa took all Judah, and they carried away the stones of Ramah and its timber, with which Baasha had been building, and with them he built Geba and Mizpah.
At that time Hanani the seer came to Asa king of Judah and said to him, "Because you relied on the king of Syria, and did not rely on the LORD your God, the army of the king of Syria has escaped you. Were not the Ethiopians and the Libyans a huge army with very many chariots and horsemen? Yet because you relied on the LORD, he gave them into your hand. For the eyes of the LORD run to and fro throughout the whole earth, to give strong support to those whose heart is blameless toward him. You have done foolishly in this, for from now on you will have wars." Then Asa was angry with the seer and put him in the stocks in prison, for he was in a rage with him because of this. And Asa inflicted cruelties upon some of the people at the same time.