Now this is the confidence that we have in Him, that if we ask anything according to His will, He hears us.
1 John 5:14 (NKJV)
Often, when we enter into prayer in the presence of God, we come with all our burdens, our complaints, our problems, sometimes even with our negative feelings towards others, hoping that God will act in our favor without neglecting any of our requests. We forget the example of Jesus in His teaching on how to pray. He taught us to first recognize the holiness of God, to appeal to His will, and then to ask for forgiveness before coming with our needs.
God wants us to bring all our worries to Him through prayer, as mentioned in 1 Peter 5:7, but He also wants our prayers to be according to His will, not our personal desires. Any prayer that is not in accordance with His will or conflicts with His plan will not be answered, no matter how strong the words or how long it takes you to pray. It's just a waste of time.
In His last prayer, before His arrest, Jesus wanted His father to spare Him the cup of pain, but He added this: "But Your will be done". The best way to pray for God's attention is to tell Him sincerely and let Him respond according to His will. Whatever His answer, it will always be for your good.
May God Bless you.