From Sahih Bukhari (Hadith 1318):
Narrated Abu Huraira:The Prophet (ﷺ) informed his companions about the death of An-Najashi and then he went ahead (to lead the prayer) and the people lined up behind him in rows and he said four Takbir
Reference: Bukhari 1318