This is the principle that blessed Abraham for his willingness to sacrifice his son Isaac. The Lord stopped him at the last instant (see Genesis 22:11-12), but his willingness to follow the Lord’s command ‘was accounted unto him for righteousness’ (D&C 132:36).