Hanani rebuked Asa because he relied on a treaty with the king of Aram instead of relying on Yahweh as he did against the Ethiopians.