It wasnarrated that 'Ubadah bin Samit said:
"When the Messenger ofAllah (ﷺ) followed a funeral, he would not sit down until it hadbeen placed in the niche-grave. A rabbi came to him and said: 'Thisiswhat we do, O Muhammad!' So the Messenger of Allah (ﷺ) satdown andsaid: 'Be different from them.'" (ES)
English reference (ES): Vol. 1, Book 6, Hadith 1545 (ES)
Arabic reference (ES): Book 6, Hadith 1612 (ES)