Anas bin Malik reported,

While the Prophet of Allah was relieving himself among some palm trees belonging to us, palm trees belonging to Abu Talha, Bilal was walking behind him, considering it disrespectful to the Prophet of Allah to walk beside him. The Prophet of Allah ﷺ passed by a grave and stopped until Bilal caught up with him.He said, "Woe to you, Bilal, do you hear what I hear?"Bilal replied, "I hear nothing."He said, "The occupant of this grave is being punished."Inquiries were made about the person, and he was found to have been a Jew.

Azami 3845

Sahih

عن أنس قال

بينما نبي الله في نخل لنا، نخل لأبي طلحة يتبرز لحاجته، قال: وبلال يمشي وراءه، يكرم نبي الله أن يمشي إلى جنبه، فمر نبي الله ﷺ بقبر، فقام حتى تم إليه بلال فقال: ويحك يا بلال، هل تسمع ما أسمع؟ قال: ما أسمع شيئا، قال: صاحب القبر يعذب، قال: فسئل عنه فوجد يهوديا.

الأعظمي 3845صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Conditions of the deceased in the grave
Section
People of the Jahiliyyah being punished in their graves
Numbering
Jami al-Kamil 3845 (2nd edition)