Narrated Al-Bara' ibn Azib: We went out with the Messenger of Allah (ﷺ) to the funeral of a man of the Ansar, but when we reached the grave, the niche in the side had not yet been made, so the Prophet (ﷺ) sat down facing the qiblah, and we sat down along with him
Hadith No. 3212
Sunan Abu Dawud
Gradings:
Al-Albani:
Sahih
Muhammad Muhyi Al-Din Abdul Hamid:
Sahih
Zubair Ali Zai:
Hasan