1 King 17:1 NIV
Now Elijah the Tishbite, from Tishbe in Gilead, said to Ahab, “As the Lord, the God of Israel, lives, whom I serve, there will be neither dew nor rain in the next few years except at my word.”
James 5:17 NIV
Elijah was a human being, even as we are. He prayed earnestly that it would not rain, and it did not rain on the land for three and a half years.
Ellicott's Commentary enlighten the understanding of "prayed earnestly";
James supplies a lacuna in the story of Elijah. In 1Kings 17:1, the prophet simply and sternly tells Ahab "there shall not be dew nor rain these years, but according to my word." Further on (1 Kings 18:41-46) "there is a sound of abundance of rain." In our Epistle we read that Elias "prayed earnestly"--literally, prayed in his prayer, a Hebraistic form of emphasis (see margin). He asked for drought, and it lasted three years and a half, so that "there was a sore famine in Samaria." He prayed once more, and "the heaven was black with clouds and wind, and there was a great rain," and thus again "the Lord hearkened unto the voice of a man." Yet Elijah was no demi-god; we even learn how he shrank from his prophet's yoke, and longed to die. No one therefore may despair in his petitions but rather let his "requests be made known unto God;" for "men ought always to pray, and not to faint" (Luke 18:1).
From 1 King 17:1 to 1 King 18:1, we have these observations;
- In 1 King 17:1, Elijah proclaimed a drought to king Ahab without a specific duration.
- There was word of the Lord to Elijah in 1 King 17:2-5, instructed him hiding in the Kerith Ravine and he followed.
- The word of the Lord came to him again in 1 King 17:8-10, instructed him to stay with a widow in Zarephath and he followed
- The word of the Lord came to him the third time in 1 King 17:14, which is a message to the widow.
- In 1 King 17:20-22 Elijah prayed earnestly to the Lord to save the widow's son. The Lord heard him and granted his prayer.
1 King 17:1 is not a prophecy because it does not begin with "the Lord said" but "As the Lord the God of Israel lives", which is a declaration of a solemn oath. The widow declared similarly in 1 King 17:12 " “As surely as the Lord your God lives,” she replied, “I don’t have any bread—only a handful of flour in a jar.....".
From the events, James recognizes that Elijah is a man of prayer because the Lord frequently responded to him. Additionally, we observed that Elijah's prayer for the revival of the widow's son is remarkable. This very earnestness in prayer is likely the reason James refers to him as such in James 5:17.