Sahih Muslim, Book 11, Hadith 23 (Muslim 2123)

Ibn 'Umar reported:

When 'Umar was wounded he fainted, and there was a loud lamentation over him. When he regained consciousness he said: Didn't you know that the Messenger of Allah (ﷺ) said:" The dead is punished because of the weeping of the living"?