Ibn 'Umar (May Allah be pleased with them) reported:
The Messenger of Allah (ﷺ) visited Sa'd bin 'Ubadah during his illness. He was accompanied by 'Abdur-Rahman bin 'Auf, Sa'd bin Abu Waqqas and 'Abdullah bin Mas'ud (May Allah be pleased with them). The Messenger of Allah (ﷺ) began to weep. When his Companions saw this, their tears also started flowing. He (ﷺ) said, "Do you not hear, Allah does not punish for the shedding of tears or the grief of the heart, but punishes or bestows mercy for the utterances of this (and he pointed to his tongue)."[Al-Bukhari and Muslim].
App reference: Book 7, Hadith 32
Arabic/English book reference: Book 7, Hadith 925