If God knows it all and controls it all and never changes then we should not be praying for Him to change things around us and accept what happens as His will.
I have struggled with the idea of prayer and a sovereign God in the past and I know many, many other do and have as well. Let get serious if God is God then my needs and wants aren’t going to make one iota of difference in the big picture, so why bother??
If I believe that God is God and that since we are discussing His nature (omniscience, sovereignty, omnipotence) then we have to rely on the source that tells us those virtues exist in Him. So logically I should rely on that same source for my instructions on how and why I am to engage in behavior and activities. So relying on that source as my instruction manual I find this Philippians 4:6 says, “Be careful for nothing; but in every thing by prayer and supplication with thanksgiving let your requests be made known unto God.” and 1 Timothy 2:1 says, “I exhort therefore, that, first of all, supplications, prayers, intercessions, and giving of thanks, be made for all men.” So since supplications: the action of asking or begging for something earnestly or humbly, and intercessions: the action of saying a prayer on behalf of another person, are something that I am instructed to do it would be a safe and logical leap to believe these actions have a purpose. The error in prayer logic is that prayer is intended to ‘change God’s mind’, it is not. Prayer is our acceptance and acknowledgment that we are weak and need help and that help must logically come from something (someone) bigger and with more control than we have and that that someone has also indicated that He hears and acts on those prayer. All of which are clearly stated to His people in the Bible (Exodus 3:7 The LORD said, “I have indeed seen the misery of my people in Egypt. I have heard them crying out because of their slave drivers, and I am concerned about their suffering.” and New Testament, Matthew 6:11‘Give us this day our daily bread. ‘And forgive us our debts, as we also have forgiven our debtors. ‘And do not lead us into temptation, but deliver us from evil. [For Yours is the kingdom and the power and the glory forever. Amen.’]. Prayer brings us into line with Him (If you pray my will it will be done) not God into line with us.It is His chosen method of communication and it is what He commanded us to do. Ultimately that’s all that matters.