He later revisited it when he himself was dying from TB and it was first sung at his funeral ... s thought the inspiration for this hymn came from a walk home from church when the author ...