Elijah decreed that there would be neither rain nor dew for three years because

A.

Nebat the son of Rehoboam connived with Ahab to kill him

B.

Ahab had forsaken the commandment of God by erecting an altar for Baal

C.

Jezebel, the wife of Ahab killed Obadiah

D.

He was sure that he would be fed by the ravens

Correct answer is B

1 Kings 16:31-34 

When Ahab ascended the throne, he did evil in the sight of the LORD by raising an altar for the worship of Baal, thereby provoking God to anger. With this, the prophet Elijah went into the land and declared that there shall not be dew nor rain in the land. 1 Kings 17:1