Being in tune with the Spirit enables one to know that which is right and that which may be appropriately asked of the Father. When our desires and deeds are in harmony with God’s will, we have the promise that all our petitions before the Father will be granted according to our desires.
To Nephi the Lord said, “All things shall be done unto thee according to thy word, for thou shalt not ask that which is contrary to my will’ (Helaman 10:5). ”Perfect prayers are always answered, “ declared Elder Bruce R. McConkie. ”Proper petitions are always granted. The Lord never rejects a prayer uttered by the power of the Spirit, or denies a petition sought in the name of Christ, that accords with the divine will.“ (New Witness, p. 384; see also D&C 50:29-30.)
Mormon later quoted this statement of the Savior’s in slightly different form: ”Whatsoever thing ye shall ask the Father in my name, which is good, in faith believing that ye shall receive, behold, it shall be done unto you“ (Moroni 7:26, italics added).”