The Messenger of Allah (ﷺ) recited thus.

Sahih Muslim Book 11 Hadith 94

Sahih Muslim #957

The Book of Prayer - Funerals 11:94

It is narrated on the authority of 'Abd al-Rahman b. Abu Laila that Zaid used to recite four takbirs on our funerals and he recited five takbirs on one funeral. I asked him the reason (for this variation), to which he replied:

The Messenger of Allah (ﷺ) recited thus.

Chapter: Praying over the grave

Grade: Sahih