"Of David. Bless the Lord, O my soul." This is what the verse (Psalm 139:14) means when it says, "I will give thanks to You, for I am awesomely and wondrously made; Your works are wonderful, and my soul knows it well." Rabbi Avdimi son of Rabbi Nahman said: There is a bad thing that is good to acquire and a good thing that is bad to acquire. There are ten parts to a person: the throat for speaking, the esophagus for eating, the liver for getting angry, the lungs for breathing, the bile for jealousy, the stomach for sleeping, the intestines for grinding, the spleen for laughing, the kidneys for advising, and the heart for understanding. Therefore, David praised God and said, "I will give thanks to You, for I am awesomely and wondrously made." Therefore, bless the Lord, O my soul.
David Blesses God for Healing Body and Soul
Midrash Tehillim 103:1