Hadithcore
Al-Adab Al-Mufrad, 853
sahih· Al-Albani

Anas said, "While the Prophet, (ﷺ), was in one of our palm groves where the trees belonged to Abu Talha, he went out to answer a call of nature. Bilal was walking behind him. The Prophet, (ﷺ), honoured him by asking him to walk at his side. The Prophet, (ﷺ), passed by a grave and stood there until Bilal reached him. he said, 'Woe to you, Bilal. Did you hear what I heard?' He replied, 'I did not hear anything.' He said, 'The man in the grave is being punished.' He found that it was a Jew."

حَدَّثَنَا أَبُو مَعْمَرٍ، قَالَ‏:‏ حَدَّثَنَا عَبْدُ الْوَارِثِ، قَالَ‏:‏ حَدَّثَنَا عَبْدُ الْعَزِيزِ، عَنْ أَنَسٍ قَالَ‏:‏ بَيْنَمَا النَّبِيُّ صلى الله عليه وسلم فِي نَخْلٍ لَنَا، نَخْلٍ لأَبِي طَلْحَةَ، تَبَرَّزَ لِحَاجَتِهِ، وَبِلاَلٌ يَمْشِي وَرَاءَهُ، يُكْرِمُ النَّبِيَّ صلى الله عليه وسلم أَنْ يَمْشِيَ إِلَى جَنْبِهِ، فَمَرَّ النَّبِيُّ صلى الله عليه وسلم بِقَبْرٍ فَقَامَ، حَتَّى تَمَّ إِلَيْهِ بِلاَلٌ، فَقَالَ‏:‏ وَيْحَكَ يَا بِلاَلُ، هَلْ تَسْمَعُ مَا أَسْمَعُ‏؟‏ قَالَ‏:‏ مَا أَسْمَعُ شَيْئًا، فَقَالَ‏:‏ صَاحِبُ هَذَا الْقَبْرِ يُعَذَّبُ، فَوُجِدَ يَهُودِيًّا‏.‏

References2 variants
In-Book Reference
Book 35, Hadith 12
English Reference
Book 35, Hadith 853