It wasnarrated from Abu Hurairah:
"The Messenger of Allah (ﷺ)said:'Najashi has died.' The Messenger of Allah (ﷺ) and hisCompanions went out to Al-Baqi', and we lined up in rows behindhim,and the Messenger of Allah (ﷺ) went forward, then he said fourTakbir." (ES)
English reference (ES): Vol. 1, Book 6, Hadith 1534 (ES)
Arabic reference (ES): Book 6, Hadith 1601 (ES)