Prayer works because God answers according to His will. This is vital in understanding prayer. God’s word in 1 John 5:14-15 is worth meditating on: “This is the confidence we have in approaching God: that if we ask anything according to his will, he hears us. And if we know that he hears us—whatever we ask—we know that we have what we asked of him.”
Know God's will to pray according to it and receive what we ask of Him.
God answers prayer according to His will. This is our confidence when we pray, as John stated. When we pray according to God's will, we have an assurance that God hears our prayers. So we have what we prayed for.
Confidence in prayer is asking in alignment with God's will. God's will is in His written word. We can know who God is, His nature, His character, thoughts, power, and ways in the Bible. God has poured out His mind and heart in the Scripture so we may know Him, for His will is an expression of who He is, His plan, and His purpose.
Forgiving others as an example is God’s will. You don't have to ask God if you should forgive the person that offended you. It is God's will to forgive as Christ has forgiven us. So, in prayer, forgive those who hurt you, and God will restore your joy and peace.
But what will you do when you know your prayer is according to His will but has not yet been answered?
Scripture said, "We know that he hears us." God heard you. Just be patient. His timing is perfect, and God is always on time. Remember: "If the request is wrong, God says, 'No.' If the timing is wrong, God says, 'Slow.' If you are wrong, God says, 'Grow.' But if the request is right, the timing is right, and you are right, God says, 'Go'!"
May you increase your knowledge of God's will so you can pray according to them and receive many answered prayers. Amen.