2 Chronicles 16:1
In the six and thirtieth year of the reign of Asa Baasha king of Israel came up against Judah, and built Ramah, to the intent that he might let none go out or come in to Asa king of Judah. In the six and thirtieth year of the reign of Asa Baasha king of Israel came up against Judah, and built Ramah, to the intent that he might let none go out or come in to Asa king of Judah.
In the thirty-sixth year of Asa's reign Baasha king of Israel came up against Judah and built Ramah to prevent anyone from going out or coming in to Asa king of Judah. Ramah was a fortified city near Jerusalem, about five miles away. Building it was a blockade meant to cut off and isolate Judah by restricting movement to and from Asa's kingdom.
Instead of trusting in God alone for deliverance, Asa sought help from Benhadad king of Syria. He took silver and gold from the treasures of the house of the Lord and of the king's house to pay Benhadad to break his league with Baasha. That alliance succeeded in stopping Baasha's work when Syria struck the cities of Israel.
Asa was rebuked for relying on Syria rather than the Lord and was reminded that God had delivered him from the much larger forces of the Ethiopians and Lubim when he relied on God. His course was foolishness and turning from God, following his own judgment contrary to God's will instead of relying on the Lord his God. God seeks to act strongly on behalf of those whose hearts are fully devoted to him.
Following one's own judgment in this way is not a light matter, and the Lord will bring trouble on any person, whatever his former calling, who turns from Him as Asa did, dealing with those who dishonor truth according to their works. The consequence of Asa's failure to trust God was continuing wars from that time onward.