Ahaziah’s messengers were en route to Ekron when the messenger of the Lord called Elijah to intercept them (vs. 3). Elijah challenged the messengers as to the reason for their journey. Was it because there was no God in Israel that they went to inquire of the Lord of the Flies, the god of Ekron? Clearly there is a God in Israel, only His people have rejected Him.
Moab rebelled against Israel after the death of Ahab. Now Ahaziah fell through the lattice of his upper room in Samaria, and was injured; so he sent messengers and said to them, Go, inquire of Baal-Zebub, the god of Ekron, whether I shall recover from this injury.
But the angel of the LORD said to Elijah the Tishbite, Arise, go up to meet the messengers of the king of Samaria, and say to them, Is it because there is no God in Israel that you are going to inquire of Baal-Zebub, the god of Ekron? Now therefore, thus says the LORD: You shall not come down from the bed to which you have gone up, but you shall surely die.
So Elijah departed. And when the messengers returned to him, he said to them, Why have you come back? So they said to him, “A man came up to meet us, and said to us, Go, return to the king who sent you, and say to him, Thus says the LORD: Is it because there is no God in Israel that you are sending to inquire of Baal-Zebub, the god of Ekron? Therefore you shall not come down from the bed to which you have gone up, but you shall surely die. Then he said to them, What kind of man was it who came up to meet you and told you these words? So they answered him, A hairy man wearing a leather belt around his waist. And he said, It is Elijah the Tishbite.
II Kings 1:1-8 NKJV