Yes, you are right. God does know what we need, before we even ask. God tells us in Matthew 6:8, “Your Father knows what you need before you ask him.” But in the next verses He tells us to pray for our needs. In 1 Thessalonians 5:17 God commands us to pray continually. That means to pray a lot!
Prayer is God’s way for us to receive what we need from Him (Heb. 4:16). He tells us the reason we don’t have what we need is because we haven’t asked or because we are asking selfishly (James 4:2-4).
We also need to pray because we have an enemy, the devil, who wants to rob us of the good things God wants to give us. Prayer is God’s way to stand firm against the devil’s tricks (Eph. 6:18).
When we pray with thanksgiving God chases away out worries and fills our hearts and minds with His peace (Phil. 4:6-7).
Isn’t it wonderful to know that God wants us to talk with Him and tell Him our needs? We all need to spend more time in prayer! I’m also glad that God knows what my needs are before I ask. That assures me that He is watching over me while at the same time knows what I need.