Prayer is for the glory of the Father. Jesus had taught this to the disciples before he left. “Whatever you do in my name, I will do it, that the father may b glorified in the Son”. (John 14:13). In other words, the ultimate purpose of prayer is that the Father be glorified.
John Piper
From the book “Let the Nations be Glad: Supremacy of God in Missions”