"And he shall go forth, suffering pains and afflictions and temptations of every kind; and this that the word might be fulfilled which saith he will take upon him the pains and the sicknesses of his people. And he will take upon him death, that he may loose the bands of death which bind his people; and he will take upon him their infirmities, that his bowels may be filled with mercy, according to the flesh, that he may know according to the flesh how to succor his people according to their infirmities" (Book of Mormon | Alma 7:11 - 12).
Commentary on the above passage:
"[Christ] showed condescension when he chose to suffer, not only for our sins, but for the infirmities, sicknesses, and illnesses of mankind. But the agonies of the Atonement were infinite and first-hand! Since not all human sorrow and pain is connected to sin, the full intensiveness of the Atonement involved bearing our pains, infirmities, and sicknesses, as well as our sins" (Neal A. Maxwell, Doctrines of the Book of Mormon, 1991 Sperry Synposium, p. 87).
"The Savior knows what it's like to die from cancer" (Neal A. Maxwell, Even As I Am, pp. 116-117).
"Whatever the source of pain, Jesus understands and can heal the spirit as well as teh body. The Savior, as a member of the Godhead, knows each of us personally. . . . In the garden and on the cross, Jesus saw each of us and not only bore our sins, but also experienced our deepest feelings so that he would know how to comfort and strengthen us" (Merrill J. Bateman, "The Power to Heal From Within," Ensign, May 1995).
"Jesus knows and understands when we are stressed and perplexed? The complete consecration which effected the Atonement ensured Jesus’ perfect empathy; He felt our very pains and afflictions before we did and knows how to succor us" (Neal A. Maxwell, "Swallowed Up in the Will of the Father," Ensign, Nov. 1995).
"To succor means to 'run to.' I testify that in my fears and in my infirmities the Savior has surely run to me. I will never be able to thank Him enough for such personal kindness and such loving care" (Jeffrey R. Holland, "He Hath Filled the Hungry With Good Things," Ensign, Nov. 1997).