At that time, Hanani the seer came to King Asa of Judah and said to him, "Because you depended on the king of Aram and have not depended on the Lord your God, the army of the king of Aram has escaped from your hand.
References for 2 Chronicles 16:7
Were not the Cushites and Libyans a vast army with very many chariots and horsemen? When you depended on the Lord, He handed them over to you.
References for 2 Chronicles 16:8
For the eyes of the Lord range throughout the earth to show Himself strong for those whose hearts are completely His. You have been foolish in this matter, for from now on, you will have wars."
Asa was angry with the seer and put him in prison because of his anger over this. And Asa mistreated some of the people at that time.
References for 2 Chronicles 16:10