Riyad as-Salihin, Book 18, Hadith 1663 (In-Book)

Ibn 'Umar (May Allah be pleased with them) said: 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). When they entered his house, they found him unconscious. The Messenger of Allah asked, "Has he died?" They replied: "No, O Messenger of Allah." Hearing this the Messenger of Allah began to weep. When his Companions saw this, they also began to weep too. He said, "Listen attentively: Allah does not punish for the shedding of tears or the grief of the heart, but takes to task or show mercy because of the utterances of this (and he pointed to his tongue)."[Al- Bukhari and Muslim].

وعن ابن عمر رضي الله عنهما قال‏:‏ اشتكى سعد بن عبادة رضي الله عنه شكوى فأتاه رسول الله صلى الله عليه وسلم يعوده مع عبد الرحمن بن عوف، وسعد بن أبي وقاص، وعبد الله بن مسعود رضي الله عنهم، فلما دخل عليه، وجده في غشية فقال‏:‏ ‏"‏أقضي‏؟‏‏"‏ قالوا‏:‏ لا يا رسول الله فبكى رسول الله صلى الله عليه وسلم فلما رأى القوم بكاء النبي صلى الله عليه وسلم بكوا، قال‏:‏ ‏"‏ألا تسمعون‏؟‏ إن الله لا يُعذب بدمع العين، ولا بحزن القلب، ولكن يعذب بهذا‏"‏ وأشار إلى لسانه ‏"‏أو يرحم‏"‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏‏.‏

sunnah.com