God does know what we need. 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.