God answers every prayer of ours all the time just not always how we want it to be answered. God has three answers for us in prayer when we ask him for things:
1) Yes: Yes, because you asked, God is going to grant you your request for your joy and his glory. “Ask, and it will be given to you…” (Matt. 7:7)
2) No: If God answered “yes” to every prayer he would be a horrible God. But because God is all-knowing and all-wise, he does say “no.” So in times when God says “no”, we have to trust that he is working all things out in our life for our good and his glory. 1 John 5:14-15 says, “. . . if we ask anything according to his will. . .we know that we have the requests that we have asked of him.” When God says “no” to something we ask of him, it is because it is outside of his will and and has something better for us.
Jesus prayed, “Father, take this cup (God’s wrath) from me” (Matt. 26:39). That didn’t happen. The Apostle Paul pleaded with God three times to remove a painful thorn from his side. God didn’t, but instead said, “my grace is sufficient for you, for my power is made perfect in weakness” (2 Cor. 12:9). So, if God says “no” to you in prayer, trust that it is the right thing and know you join the company of people like Jesus and St. Paul.
3) Later: Yes, what you have asked of God will be given to you. . . later. Be patient. Trust in God’s perfect timing and will.
It is worth noting that no where in Scripture does God ever promise to answer the prayers of unbelievers but occasionally does to display his excellence and mercy. Prayer is the wonderful privilege of the elect, God’s children, whom he choose in eternity past and desires that we pray to him.