Reminds of this couplet by Kabir (https://en.wikipedia.org/wiki/Kabir):
जब हम पैदा हुये तो जग हँसे हम रोये,
ऐसी करनी कर चलो, हम हँसे, जग रोये।
Translation: When you were born, you cried while the world rejoiced;
Live such a life that when you depart, you smile while the world weeps.