It takes effort to distinguish what the Lord wants from what you want and the other person may want.
Chapter 6 of Preach My Gospel teaches key attributes of Christ that we can emulate: “Patience is the capacity to endure delay, trouble, opposition, or suffering without becoming angry, frustrated, or anxious. It is the ability to do God’s will and accept His timing. When you are patient, you hold up under pressure and are able to face adversity calmly and hopefully”
Jesus' tutoring but disapproving response was: "Ye know not what ye ask." (Matthew 20:22.) Clearly, when our prayers are uninspired, we petition for things we should not ask for, even though we do so innocently. This is, in effect, what we do when we pray and "ask amiss." (James 4:3.) When we ask amiss, God, being perfect, must reject our petitions: "And whatsoever ye shall ask the Father in my name, which is right, believing that ye shall receive, behold it shall be given unto you." (3 Nephi 18:20. Italics added.) The task is to draw close enough to the Lord that we progress to the point where we petition Him according to His will, not ours. "And this is the confidence that we have in him, that, if we ask any thing according to his will, he heareth us." (1 John 5:14.) In modern revelations the Lord has declared His willingness to grant us the requests contained in our petitions if what we ask for is expedient for us. (D&C 88:64-65.) When we become sufficiently purified and cleansed from sin, we can ask what we will in the name of Jesus "and it shall be done." (D&C 50:29.) The Lord even promises us that when one reaches a certain spiritual condition, "it shall be given you what you shall ask." (D&C 50:30.)
When we pray, we are not conveying any information to God that He does not already have. Nor, when we confess our sins before Him, is it news to Him that we have misbehaved. It is vital, therefore, that we open our souls to Him and tell Him what our concerns are now, as well as acknowledge what we now are, for this is a part of the process of aligning ourselves with His will. We cannot, for the purposes of real prayer, hurriedly dress our words and attitudes in tuxedos when our shabby life is in rags. More than we realize, being honest with God in our prayers helps us to be more honest with ourselves. Furthermore, some of us actually feel we are too good for a petitionary prayer, especially when life is going reasonably well. It is part of our childish resentment of our dependency on God. We are also sometimes too proud to pray over small things, and thus we get out of practice. Then the moment of agony comes.
In those moments our desires of the day may have to be sacrificed to our needs in our endless tomorrows. A mortal life may need to be "shortened" by twenty years as we might view it—but if so, it may be done in order for special services to be rendered by that individual in the spirit world, services that will benefit thousands of new neighbors with whom that individual will live in all of eternity. Perhaps this reality is yet another reason and reminder why we are urged to pray only for "our daily bread," for disciples must be portable. Our omniloving and omniscient Father will release us when it is best for us to be released. But each such release of a righteous person is also a call to new labors!
Miracles can come as answers to prayer. They are not always what we ask for or what we expect, but when we trust in the Lord, He will be there, and He will be right. He will suit the miracle to the moment we need it.