Sahih Muslim, Book 11, Hadith 20 (Muslim 2120)

'Abdullah b. 'Umar reported that Hafsa wept for 'Umar (when he was about to die). He ('Umar) said:

Be quiet, my daughter. Don't you know that the Messenger of Allah (ﷺ) had said:" The deceased is punished because of his family's weeping over the death"?