Now when Asa heard these words and the prophecy which Azariah the son of Oded the prophet spoke, he took courage and removed the abominable idols from all the land of Judah and Benjamin and from the cities which he had captured in the hill country of Ephraim. He then restored the altar of the LORD which was in front of the porch of the LORD.
He also sought Ahaziah, and they caught him while he was hiding in Samaria ; they brought him to Jehu, put him to death and buried him. For they said, "He is the son of Jehoshaphat, who sought the LORD with all his heart." So there was no one of the house of Ahaziah to retain the power of the kingdom.
The Philistines also had invaded the cities of the lowland and of the Negev of Judah, and had taken Beth-shemesh, Aijalon, Gederoth, and Soco with its villages, Timnah with its villages, and Gimzo with its villages, and they settled there.