This is the promise given to those who pray in faith. As recorded in James, if any of you lack wisdom let him ask of God, that giveth to all men liberally, and upbraideth not; and it shall be given him. But let him ask in faith, nothing wavering (James 1:5-6). Nephi goes on to show that his faith is perfect in the principle of prayer as long as he does not 'ask amiss.' James also warned against asking for things for the wrong reasons, Ye ask, and receive not, because ye ask amiss, that ye may consume it upon your lusts (James 4:3). The Lord warns Oliver Cowdery not to ask for things he shouldn't, ask in faith. Trifle not with these things; do not ask for that which you ought not (DC 8:10). Our attitude when we pray for things that may not be according to the will of God should be like that of the Savior as he suffered in Gesthemane, nevertheless not my will, but thine, be done (Lu 22:42).