Sunan Abi Dawud, Book 21, Hadith 108 (Abu Dawud 3197)

Narrated Al-Sha'bi:

The Messenger of Allah (ﷺ) passed a grave dug freshly. They arranged a row and uttered four takbirs over it. I asked al-Sha'bi: Who told you ? He replied: A reliable person whom 'Abd Allah b. 'Abbas attended.