Ok, here is an extremely close variant of the saying that is located in the mahopanishadaM
verses 70-73 of its sixth chapter read:
udAraH peshalAchAraH sarvAchArAnuvR^ttimAn
antaH-sa^Nga-parityAgI bahiH saMbhAravAniva
antarvairAgyamAdAya bahirAshonmukhehitaH
<b>ayaM bandhurayaM neti gaNanA laghuchetasAm
udAracharitAnAm tu vasudhaiva kuTumbakam</b>
bhAvAbhAva vinirmuktaM jarAmaraNavarjitaM
prashAnta kalanArabhyaM nIrAgaM padamAshR^aya
eSA bAmhI sthitiH svachchhA niSkAmA vigatAmayA
AdAya viharannevaM saMkaTeSu na muhyati
The sloka-s are describing the elevated brAmhI sthiti of AdhyAtmik realm. It says:
(That elevated one in brAmhI sthiti) is generous, always clean in behaviour, and in accordance to the established norms of conduct, free from all clingings in life. From inside, s/he renounces all, (although) outwardly (appars to) carry some objective (or other, like an ordinary life. However, unlike) the small hearted people (who discriminate between the others) saying 'This one is my brother; the other a stranger', these of the magnanimous hearts embrace the entire world as their own family. They gain liberation from all considerations of ordinary life, like old age and death, their mental fires (of klesha-s) become extinguished and in them no attachments finds any shelter. Such (Listen O best amongst the brAhmaNas! are those who acheive) the status of BrAmhI sthiti, the absolutely pure, that beyond all cravings and sufferings. Equipped with such attributes they freely roam (the earth), without knowing any calamity.
the mahopanisataM in pdf
verses 70-73 of its sixth chapter read:
udAraH peshalAchAraH sarvAchArAnuvR^ttimAn
antaH-sa^Nga-parityAgI bahiH saMbhAravAniva
antarvairAgyamAdAya bahirAshonmukhehitaH
<b>ayaM bandhurayaM neti gaNanA laghuchetasAm
udAracharitAnAm tu vasudhaiva kuTumbakam</b>
bhAvAbhAva vinirmuktaM jarAmaraNavarjitaM
prashAnta kalanArabhyaM nIrAgaM padamAshR^aya
eSA bAmhI sthitiH svachchhA niSkAmA vigatAmayA
AdAya viharannevaM saMkaTeSu na muhyati
The sloka-s are describing the elevated brAmhI sthiti of AdhyAtmik realm. It says:
(That elevated one in brAmhI sthiti) is generous, always clean in behaviour, and in accordance to the established norms of conduct, free from all clingings in life. From inside, s/he renounces all, (although) outwardly (appars to) carry some objective (or other, like an ordinary life. However, unlike) the small hearted people (who discriminate between the others) saying 'This one is my brother; the other a stranger', these of the magnanimous hearts embrace the entire world as their own family. They gain liberation from all considerations of ordinary life, like old age and death, their mental fires (of klesha-s) become extinguished and in them no attachments finds any shelter. Such (Listen O best amongst the brAhmaNas! are those who acheive) the status of BrAmhI sthiti, the absolutely pure, that beyond all cravings and sufferings. Equipped with such attributes they freely roam (the earth), without knowing any calamity.
the mahopanisataM in pdf