The question is not very accurate. Simply the will of God goes with the prayer. When you pray, you are doing the will of God. So how can the prayer change the will of God?
What is the will of God?
The will of God for everyone is to pray, to pray more, and to enjoy living in the spirit.
So. By praying, you are doing the will of God. And if you think in an intellectual way, that your request from God may change his the decision is always for your salvation.
So when you pray with a pure heart asking God for salvation, your prayer is with the will of God. So you cannot say my prayer may change the will of God. If you mean the will of God, like, you know, answering some question about somebody is sick or succeeding in your exam., this is related to the will of God concerning your eternal life.
What prayer that is with the will of God?
So when you pray, thy will be done. So. I’m surrendering my will to his will. I’m asking God and praying to fulfill his will in my life. So again, this prayer will go with the will of God. It will never change the will of God. If the will of God is on one side and your prayer in the other side, if your prayer is against the will of God indefinitely, God will never listen because you are asking for bad things to happen.
Does the will of God good for me?
But if you do not know the future, you do not know the benefit. So you say, please God, listen to my prayer, but do whatever is good for me. And the Good will of God is always the best for you.