Mishkat al-Masabih 1713
وَعَنِ الْبَرَاءِ بْنِ عَازِبٍ قَالَ: خَرَجْنَا مَعَ رَسُولِ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ فِي جَنَازَة رجل من الْأَنْصَار فَانْتَهَيْنَا إِلَى الْقَبْر وَلما يُلْحَدْ بَعْدُ فَجَلَسَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ مُسْتَقْبِلَ الْقِبْلَةِ وَجَلَسْنَا مَعَهُ. رَوَاهُ أَبُو دَاوُدَ وَالنَّسَائِيُّ وَابْنُ مَاجَهْ وَزَادَ فِي آخِرِهِ: كن على رؤوسنا الطير
From al-Baraʾ ibn ʿAzib, who said: We went out with the Messenger of Allah ﷺ for the funeral of a man of the Ansar. We reached the grave, and the lahd had not yet been dug, so the Prophet ﷺ sat facing the qiblah and we sat with him. Reported by Abu Dawud, an-Nasaʾi and Ibn Majah, and he added at its end: as though there were birds on our heads.