20 He cried to Yahweh, and said, “Yahweh my God, have you also brought evil on the widow with whom I sojourn, by killing her son?” 21 He stretched himself on the child three times, and cried to Yahweh, and said, “Yahweh my God, please let this child’s soul come into him again.” 22 Yahweh listened to the voice of Elijah; and the soul of the child came into him again, and he revived.

Matthew Henry's Commentary on 1 Kings 17:20-22

Commentary on 1 Kings 17:17-24

(Read 1 Kings 17:17-24)

Neither faith nor obedience shut out afflictions and death. The child being dead, the mother spake to the prophet, rather to give vent to her sorrow, than in hope of relief. When God removes our comforts from us, he remembers our sins against us, perhaps the sins of our youth, though long since past. When God remembers our sins against us, he designs to teach us to remember them against ourselves, and to repent of them. Elijah's prayer was doubtless directed by the Holy Spirit. The child revived. See the power of prayer, and the power of Him who hears prayer.