Learning is a friend on the journey; a wife in the house; medicine in sickness; and religious merit is the only friend after death.
or simply: