The Lord explains to Samuel that "man looketh on the outward appearance, but the Lord looketh on the heart."
1 Samuel 16:7, The Old Testament, The Church of Jesus Christ of Latter-day Saints, 2013, accessed February 23, 2023
7 But the Lord said unto Samuel, Look not on his countenance, or on the height of his stature; because I have refused him: for the Lord seeth not as man seeth; for man looketh on the outward appearance, but the Lord looketh on the heart.