For God to answer prayer it has to be offered as the Bible instructs.
1. If you are harboring unconfessed sin in your life, you need to confess it so you can have that boldness to enter into God’s presence. If I had cherished sin in my heart, the Lord would not have listened;– Psalm 66:18
2. You need to pray according to His will. When our desires and requests are aligned with and subjugated to the will of God, we know that He will hear and grant what we seek of Him. 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.– 1 John 5:14-15
3. You need to pray in His Name. What praying in Jesus’ name really means is that we should pray as if the Lord Himself were doing the asking. When we pray with that perspective, we begin to pray for things that really matter, and we eliminate selfish requests. And I will do whatever you ask in my name, so that the Son may bring glory to the Father. You may ask me for anything in my name, and I will do it.– John 14:13-14
4. You need to pray with a knowledge of Scripture. When you are controlled by His Word, you are not going to ask anything against God’s will. If you remain in me and my words remain in you, ask whatever you wish, and it will be given you. – John 15:7
Be wise today and always - make sure God hears your prayers by listening to and obeying Him.