"In the Doctrine and Covenants the Lord gives counsel to one of His precious daughters—Emma Smith—to be faithful and to “walk the paths of virtue before me” (D&C 25:2). The Lord’s advice to Emma Smith is also His advice to all His precious daughters. What are those paths, and what is virtue?
Virtue is a pattern of thought and behavior based on high moral standards. It encompasses chastity and moral purity. Virtue includes modesty—in thought, language, dress, and demeanor. Virtue provides an anchor on the path leading to our Heavenly Father’s presence. The paths of virtue lead to happiness in this life and in the life to come. The paths of virtue lead to strong families. The paths of virtue contain the foundation stones for the blessings of eternity. They lead to the temple. No wonder the Prophet Joseph Smith said, “If there is anything virtuous, lovely, or of good report or praiseworthy, we seek after these things” (Articles of Faith 1:13).
In another revelation the Lord promises each of us that if we let virtue garnish our thoughts unceasingly, we will have confidence. He promises that our “confidence [will] wax strong” and the Holy Ghost will be our constant companion (see D&C 121:45–46). Living Church standards helps each of us stay on the paths of virtue. Whenever we are worthy of the constant companionship of the Holy Ghost, we can have the confidence that the daily decisions we make will be correct even when they are difficult."
--Elaine S Dalton, "Cherish Virtue", Liahona, April 2009, N1-N8