5:17 Elias was a man subject to like passions as we are. Jas 5:16 has affirmed the power of the prayer of a righteous man. An example of its power is now given. Elijah was a man like ourselves, yet great results followed his prayer. See 1Ki 17:1 and following chapters.
He prayed earnestly that it might not rain. No mention is made in the Old Testament of the prayer, but it is announced prophetically. He prayed, either before or after, that rain might be withheld until Israel repented.
And it rained not on the earth by the space of three years and six months. See Lu 4:25 In the Old Testament the time is not exactly stated. In the third year the Lord spoke to Elijah about rain, 1Ki 18:1 but we are not informed whether the beginning of the third year was when rain ceased to fall, or when he went to Zarephath. It is probable that the latter is meant.
5:17 Elijah was a man of like passions - Naturally as weak and sinful as we are. And he prayed - When idolatry covered the land.
5:12-18 The sin of swearing is condemned; but how many make light of common profane swearing! Such swearing expressly throws contempt upon God's name and authority. This sin brings neither gain, nor pleasure, nor reputation, but is showing enmity to God without occasion and without advantage It shows a man to be an enemy to God, however he pretends to call himself by his name, or sometimes joins in acts of worship. But the Lord will not hold him guiltless that taketh his name in vain. In a day of affliction nothing is more seasonable than prayer. The spirit is then most humble, and the heart is broken and tender. It is necessary to exercise faith and hope under afflictions; and prayer is the appointed means for obtaining and increasing these graces. Observe, that the saving of the sick is not ascribed to the anointing with oil, but to prayer. In a time of sickness it is not cold and formal prayer that is effectual, but the prayer of faith. The great thing we should beg of God for ourselves and others in the time of sickness is, the pardon of sin. Let nothing be done to encourage any to delay, under the mistaken fancy that a confession, a prayer, a minister's absolution and exhortation, or the sacrament, will set all right at last, where the duties of a godly life have been disregarded. To acknowledge our faults to each other, will tend greatly to peace and brotherly love. And when a righteous person, a true believer, justified in Christ, and by his grace walking before God in holy obedience, presents an effectual fervent prayer, wrought in his heart by the power of the Holy Spirit, raising holy affections and believing expectations and so leading earnestly to plead the promises of God at his mercy-seat, it avails much. The power of prayer is proved from the history of Elijah. In prayer we must not look to the merit of man, but to the grace of God. It is not enough to say a prayer, but we must pray in prayer. Thoughts must be fixed, desires must be firm and ardent, and graces exercised. This instance of the power of prayer, encourages every Christian to be earnest in prayer. God never says to any of the seed of Jacob, Seek my face in vain. Where there may not be so much of miracle in God's answering our prayers, yet there may be as much of grace.