Abdul-Rahman bin Abu Layla reported,

Zayd bin Arqam used to say four takbirs over a funeral, but on one occasion he said five takbirs over a funeral. I asked him about it, and he replied, "The Messenger of Allah ﷺ used to say them."

Azami 3708

Sahih

عن عبد الرحمن بن أبي ليلى قال

كان زيد (بن أرقم) يكبر على جنازة أربعا، وإنه كبر على جنازة خمسا، فسألته فقال: كان رسول الله ﷺ يكبرها.

الأعظمي 3708صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Prayer over the deceased
Section
Adding more than four takbirs
Numbering
Jami al-Kamil 3708 (2nd edition)
Azami 3708