A hadith like this has been narrated by Mughira b. Shu'ba from the Messenger of Allah (ﷺ).

Sahih Muslim Book 11 Hadith 36

Sahih Muslim #933 b

The Book of Prayer - Funerals 11:36

A hadith like this has been narrated by Mughira b. Shu'ba from the Messenger of Allah (ﷺ).

Chapter: The deceased is tormented because of his family's crying for him

Grade: Sahih