He behaved in the most detestable way, going after idols, just as the Amorites had done, whom Yahweh drove out before the Israelites.)
In context
24Anyone belonging to Ahab who dies in the city, the dogs will eat, and anyone who dies in the field, the birds of the sky will eat.” 25(There was truly no one like Ahab, who sold himself to do what was evil in the eyes of Yahweh, urged on by Jezebel his wife. 26He behaved in the most detestable way, going after idols, just as the Amorites had done, whom Yahweh drove out before the Israelites.) 27When Ahab heard these words, he tore his clothes, put on sackcloth next to his skin, and fasted. He lay down in the sackcloth and walked around subdued. 28Then the word of Yahweh came to Elijah the Tishbite: