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.
Sunan Abi Dawud Book 21, Hadith 108