If God already knows everything, why do we pray?

The epistle of James was written by James, a respected leader in the early church. James was the half-brother of Jesus but didn't come to faith in Jesus until after Christ's resurrection.
James was someone that the early church would look to for wisdom and counsel. He was also someone who was known for being a man of prayer. I have heard that he spent so much time on his knees in prayer that his knees became large with callouses. Apparently some people affectionately called him, "Old Camel-knees.”
It's likely that the book of James was the first book of the New Testament to be written. It is believed to have been written less than ten years after Christ's crucifixion and resurrection.
In his letter, James encourages believers to put their faith into action in practical and visible ways. He also stresses the importance of prayer in the life of a follower of Christ. In fact, this book begins and ends with an encouragement to pray.
As followers of Christ, when then is the best time to pray? And if God already knows everything, what then is the purpose of prayer?
I. Prayer is a way to express our trust in God in the midst of all kinds of life circumstances
“Is anyone among you suffering? Let him pray. Is anyone cheerful? Let him sing praise. 14 Is anyone among you sick? Let him call for the elders of the church, and let them pray over him, anointing him with oil in the name of the Lord. 15 And the prayer of faith will save the one who is sick, and the Lord will raise him up.” (James 5:13-15a)
Different seasons of life present us with all kinds of circumstances. Just yesterday, I took my wife and daughter out for lunch, and after enjoying a nice meal together, I noticed how beautiful the weather was as I was walking to my car. It made me wish I could just stay outside all day, even though that wasn't possible.
In a moment like that, it's rather easy for me to appreciate my circumstances. It's easy to look at God and say, "Thank you," because everything felt good. I enjoyed the time with my family. My belly was full. The weather was about as nice as it gets during this time of year. But God doesn’t only invite us to come to Him on the nice days. He invites us to come to Him in prayer in the midst of all circumstances.
James speaks of circumstances or seasons of suffering that may often appear in a believer’s life. Our Lord understands seasons of suffering. When we look at the experience Jesus had on this earth, suffering was something He became well acquainted with
“Since he himself has gone through suffering and testing, he is able to help us when we are being tested.” (Heb. 2:18, NLT)
Maybe you're going through a season of suffering right now. What does God's word recommend to us when those seasons come? We're invited to pray. We're invited to unload our burdens on the Lord. We're invited to trust Him with our spiritual, physical, emotional, and relational needs.
But not every season of life is consumed with suffering. In fact, there are times when we're blessed to go through long stretches when it feels like everything is going great. There is a danger that comes with long and cheerful stretches of life. The danger is that we can forget that the Lord is the giver of all good things. So James encourages us to pray when we're cheerful. To remember to express our thanks and appreciation for these seasons of cheer.
From there, James invites us to pray in another circumstance. We're encouraged to pray when we're afflicted with sickness or disease. We're even encouraged to invite the spiritual leadership of the local church to come and pray over us. This can require some humility on our part because it will force us to admit that we have a need, but that's often a necessary step in the process of us getting well, both physically and spiritually.
James speaks of elders anointing with oil in the name of the Lord. In the context this was written, oil was used in multiple ways. At times it was used in a medicinal way. There are also biblical contexts where it was used to symbolically represent the Holy Spirit. In the context it's being used here, it's likely that it was being used in a symbolic way to visibly illustrate that the person being prayed for was being committed to the Lord's care and that His divine intervention was being sought on their behalf.
The overall point I believe is being communicated in this section of Scripture is that we're invited to come before the Lord in prayer in every circumstance of life. In our high moments. In our low moments. On behalf of those who are suffering or ill. On behalf of our own concerns. The Lord invites us to confidently and regularly enter into His presence and seek His intervention.
II. Prayer is an effective way for us to confess and forsake our sins.
“And if he has committed sins, he will be forgiven. 16 Therefore, confess your sins to one another and pray for one another, that you may be healed. The prayer of a righteous person has great power as it is working.” (James 5:15b-16)
How easy is it for you to admit when you're wrong? Generally speaking, I don't think that's an easy thing for most people to do. That's a discussion that comes up quite regularly when you're married. That's something you have to wrestle with when you attempt to lead a group. That's something that's an issue of concern in any kind of relationship. I can picture multiple contexts where I have seen people communicate by their words and their posture that they would rather die than admit they were wrong. It isn't pretty to see and it works against the process of spiritual growth.
What are you holding onto that you struggle to admit to others? Is there something that you've allowed to creep into your life that isn't in line with God's will? Even though you've been set free from sin's grip on your life through faith in Jesus, is there anything you're still allowing to dominate your life or your thinking in an unhealthy way? Why do some of these sinful propensities lurk in our lives for so long? Why do we struggle with them for years and sometimes even decades? Could it be because we refuse to expose them to the light?
James indicated that one potential cause of sickness could be unconfessed and unrepented sin. Certainly not every case of sickness is the result of unconfessed sin in a person's life, but biblically speaking, we're told that there are some illnesses that are the direct result of sin. You don’t have to be too creative or search too far to come up with a few examples of illnesses and ailments that are the direct result of sinful activity.
Scripture gives us another specific example of the effects of unconfessed sin in 1 Corinthians 11:29-30 where we're told that some people in the Corinthian culture were disciplined by God with illnesses and even death after failing to honor the meaning and practice of communion.
“For if you eat the bread or drink the cup without honoring the body of Christ you are eating and drinking God’s judgment upon yourself. 30 That is why many of you are weak and sick and some have even died.” (1 Corinthians 11:29-30, NLT)
The Lord invites us to pray in conjunction with the confession of our sins. We can confess to each other. We can confess to Him. And this shouldn't be overly scary to us or resisted by us because the alternative is spending years and years feeling like we're being bound and defeated by the very things Jesus already defeated when He rose from the grave.
Jesus defeated sin. There's no reason to let it defeat us any longer. The prayer of a person who has received the righteousness of Christ as a gift has great power. Pray for Christ's strength to live in the victory He has already secured for you.
III. Prayer is the means God has ordained for us to access His divine power.
“The prayer of a righteous person has great power as it is working. 17 Elijah was a man with a nature like ours, and he prayed fervently that it might not rain, and for three years and six months it did not rain on the earth. 18 Then he prayed again, and heaven gave rain, and the earth bore its fruit.” (James 5:16b-18)
When we consider the power available to us in prayer, it's staggering to try to wrap our minds around it. Consider the example James reminds us of. He speaks of Elijah, a man the Lord equipped to serve as a prophet during the Old Testament era.
At times, Elijah struggled with depression and discouragement. He didn't think of himself as a big deal, and even James reminds us that Elijah had a nature just like ours. Yet the Lord gave Elijah the authority and ability to pray in such a way that even the rainfall in his corner of the world was impacted.
Now Elijah the Tishbite, of Tishbe in Gilead, said to Ahab, “As the Lord, the God of Israel, lives, before whom I stand, there shall be neither dew nor rain these years, except by my word.” (1 Kings 17:1)
What do you think? Could you pray with that kind of assurance? And if you did pray that way, would you actually expect the Lord to answer? The truth is, the Lord always answers the prayers of His children. Sometimes He says "yes," sometimes He says "no," and sometimes He says, "not yet," but He always answers.
The key to remember is found in the example Jesus gave us in His prayers to the Father. When Jesus gave us the example of the Lord's Prayer, He said, "Our Father in heaven, hallowed be your name. Your kingdom come, your will be done, on earth as it is in heaven." (Matthew 6:9-10).
When Jesus was praying in the Garden of Gethsemane just prior to His crucifixion, the Scripture tells us, "And going a little farther he fell on his face and prayed, saying, 'My Father, if it be possible, let this cup pass from me; nevertheless, not as I will, but as you will.'” (Matthew 26:39).
Jesus prayed that the will of the Father would be done. That should be our prayer as well. And as we pray for His will to be accomplished, we can be confident that the Lord will answer. He will answer in His way, in His timing, and in line with the intricate details of His perfect plan. Do you believe this?
IV. Prayer prevents us from wandering from the truth.
“My brothers, if anyone among you wanders from the truth and someone brings him back, 20 let him know that whoever brings back a sinner from his wandering will save his soul from death and will cover a multitude of sins.” (James 5:19-20)
James wraps this book up with an example that doesn't directly speak of prayer, but I think it's appropriate to include it in this discussion on prayer because we need the Lord's help to actually facilitate this.
Our lives are being pulled in all kinds of directions. Our beliefs are regularly tested as well. If we get too distracted, it's certainly possible to begin wandering from the truth of the gospel without initially realizing we've done so.
We need help to stay on the path the Lord has set before us. We need people who speak truth into our lives. We need people who care about us enough to get to know us well. We need people who live in close enough proximity to us to be able to point out our wanderings because that will help keep us from adopting an aimless life that's absent of Christ's leading.
There is no shortage of things to be praying about. There is no wrong time to pray. The Lord delights to welcome His children into His presence through prayer.
Prayer helps us express our trust in God.
Prayer is an effective way to confess our sins.
Prayer allows us to access God’s divine power.
Prayer prevents us from wandering from the truth.
© John Stange, 2025