“Is it because there is no God in Israel that you are going to inquire of Baal-zebub, the god of Ekron?” (v3). King Ahaziah’s pain (he was injured, v2) revealed the inclination of his heart: he asked his servants to pray to the idol Baal for his healing. God sent the prophet of Elijah to declare the dire consequences of Ahaziah’s putting his trust in an idol: he would die of his injury. Ahazaiah tried to capture and kill Elijah, but God’s power prevailed.
When we are in emotional or physical pain, finding comfort in idols (such as work, entertainment, immorality, or self-reliance) only destroys us. Our Creator wants to revive our souls.