At that time Hanani the seer came to Asa king of Judah and said to him: “Because you leaned on the king of Aram and did not lean on Yahweh your God, the army of the king of Aram has slipped out of your hand.
In context
5When Baasha heard of it, he stopped fortifying Ramah and left his work unfinished. 6Then King Asa took all Judah, and they carried away the stones and timber of Ramah with which Baasha had been building; and with them he fortified Geba and Mizpah. 7At that time Hanani the seer came to Asa king of Judah and said to him: “Because you leaned on the king of Aram and did not lean on Yahweh your God, the army of the king of Aram has slipped out of your hand. 8Were not the Cushites and the Libyans a huge force, with chariots and horsemen in enormous numbers? Yet because you leaned on Yahweh, he gave them into your hand. 9For the eyes of Yahweh range over the whole earth, to give strength to those whose heart is undivided toward him. In this you have acted like a fool; from now on you will have wars.”