The Fact is that most people do it wrong.
Praying works. Scientifically prooven over and over again, but ok lets start at the beginning:
Praying is a word that means you do something.
What do you do while praying? What is praying and does it matter who you are praying to.
The last question is really the most difficult to answer on a good theoretical level.
Case A. God exists and you are praying to the right one and he listens, well good for you.
Case B. God exists and you are prying to the wrong one and ofc he doesnt listen, that means you are praying to nobody like in
Case C. God doesnt exists and you pray to nobody but yourself.
Please remeber that you pray also to yourself in Case of A.
In Case A. Lets just say God does what you want him to do, or at least what is best for you. The result would likely be similar but more powerful compared to B or C (which are basically the same).
In Case B or C the actual results come from within you, as you are praying to yourself.
Now what is praying.
Well I personally think praying is a mixture of many things. Among them
1) Thinking at Beta level
2) Visualising
3) Emotional underline to what you think in prayer, happens
4) Gives you a ritual, which also means all kinds of resources (steadiness, calmness, hope, etc...)
5) learning
6) exercise
I will not explain 1, 2, 3 and 4 because it will either take me too much time or seems obvious to me.
5 is allways following out of 6 however the results are not allways positive (you can learn behaviour or thoughts that are not good/working for you).
Why is praying exercise.
Well. If you have two teams of random people and you let them play bascetball against each other.
You excercise physically with one team for 1 day and you imagine the play and the win with the other team for 1 day.
The imagine team will win. period.
If good sportsmen imagin how they are running, climbing or whatever they like to do, their muscles fire, although they are lieing down. They excercise the right muscle sequence by imagination alone.
If you see things over and over again, of you think about things over and over again, you exercise them, this process is faster when in beta state (slower braincycles per minute - like when you are in prayer meditation sleep etc)
If you see good things over and over again, you excercise those.
Here now comes the real part.
If you want to pray for something then you better make sure u a) are in beta and

you pray for something positive, something you want
and not something you dont want. Lets say you dont want your
Dad to die. What do you imagine? Right. A Dead person. Is this gonna help? No.
Well you could say: Doesnt matter, its not gonna hurt either.
Well i say maybe. Maybe not. Because theres a few thing you forgot: 1) what if praying really works interpersonal 2) it doesnt hurt thinking positive 3) your interactions with your dad will be based on the assumption that he is dieing which he will maybe pick up during conversation, which makes him also think that you think hes dieing, which is obviously not a good thing to think 4) you will not be able to think about what you can do to make him get well again productively
Im not a believer in the Bible, nor in Jesus or whatever, but I support the hope and the gift that this book is to so many people and I certainly do believe in prayers, although i think its a rather old word for it and many people do it and call it differently.
And to be honest if you look at those cases it doesnt really matter if god exists. If he does it maybe is better, if he doesnt praying still works (at least intrapersonel for setting the right frame on yourself)
So in short:
Think Positive of what you want (or what you want instead). Focus on that. Imagine that. Then pray for it with emotion.
Be ready to recieve and actually do something for it.
That is praying and how its done imo