Proverbs 17:22 in the King James Version
A merry heart doeth good like a medicine: but a broken spirit drieth the bones.
Context
21 He who becomes the father of a fool grieves. The father of a fool has no joy.
22 A cheerful heart makes good medicine, but a crushed spirit dries up the bones.
23 A wicked man receives a bribe in secret, to pervert the ways of justice.