One should say four or five takbirs
In reality, what is established from the Prophet ﷺ is saying four or five takbirs; however, saying up to nine takbirs is also established from some of the Companions, and Shaykh al-Albani (may Allah have mercy on him), considering it to have the ruling of a raised report (marfu’), has declared acting on those as well to be permissible. The evidences for this are as follows:
Evidences for four takbirs:
➊ It is narrated from Jabir (may Allah be pleased with him) that the Prophet ﷺ led the funeral prayer of the Negus: فكبر عليه أربعا “So he said four takbirs over him.”
➋ A hadith with the same meaning is also narrated from Abu Hurayrah (may Allah be pleased with him).
➌ This ruling is also established by a report narrated from Ibn Abbas (may Allah be pleased with them both).
➍ The reports narrated from Uqbah ibn Amir (may Allah be pleased with him) and Bara ibn Azib (may Allah be pleased with him) also support this.
➎ It is narrated from Abu Umamah (may Allah be pleased with him): “In the funeral prayer, the sunnah is that after the first takbir the imam recites Surah al-Fatihah in a low voice, then says three takbirs, and ends with the salam with the last takbir.”
➏ It is narrated from Abdullah ibn Abi Awfa (may Allah be pleased with him): ان رسول الله كان يكبر أربعا “The Messenger of Allah ﷺ used to say four takbirs.”
Evidences for five takbirs:
It is narrated from Abd al-Rahman ibn Abi Layla (may Allah be pleased with him) that Zayd ibn Arqam (may Allah be pleased with him) used to say four takbirs over our funerals, but over one funeral he said five takbirs, so I asked him, and he said:
كان رسول الله يكبرها
“The Messenger of Allah ﷺ used to say these (i.e. five) takbirs as well.”
Evidences for six and seven takbirs:
➊ It is narrated from Ali (may Allah be pleased with him) that:
أنه كبر على سهل بن حنيف ستا وقال أنه شهد بدرا
“He said six takbirs over the funeral of Sahl ibn Hunayf (may Allah be pleased with him) and said that he had been present at Badr.”
➋ It is narrated from Musa ibn Abdullah ibn Yazid (may Allah be pleased with him) that Ali (may Allah be pleased with him) led the funeral prayer of Abu Qatadah (may Allah be pleased with him):
فكبر عليه سبعا
“And he said seven takbirs over him.”
Evidences for nine takbirs:
It is narrated from Abdullah ibn al-Zubayr (may Allah be pleased with him) that the Messenger of Allah ﷺ led the funeral prayer of Hamzah (may Allah be pleased with him):
فكبر تسع تكبيرات
“So the Prophet ﷺ said nine takbirs.”
Although the scholars differed regarding the number of takbirs of the funeral prayer, the majority have given preference to four takbirs.
(The majority, Ahmad, al-Shafi’i, Malik (may Allah have mercy on them)) Four takbirs are given preference.
(Tirmidhi (may Allah have mercy on him)) Most of the people of knowledge among the Companions and those after them hold to four takbirs.
(Ibn al-Mundhir (may Allah have mercy on him)) Most of the people of knowledge hold to four takbirs.
(Shawkani (may Allah have mercy on him)) Fewer than four and more than five takbirs are not established from the Messenger of Allah ﷺ by any raised (marfu’) hadith; moreover, choosing four takbirs is more preponderant and better.
(Ibn Hazm (may Allah have mercy on him)) One should not say fewer than four or more than five takbirs.
The evidences of those who have declared more than four takbirs prohibited are as follows:
➊ Consensus has been reached on this.
(Ibn Abd al-Barr (may Allah have mercy on him)) The jurists and the people of fatwa have reached consensus on four takbirs.
➋ In some reports these words are also mentioned:
كان آخر ما كبر رسول الله على الجنازة أربعا
“The last takbirs that the Messenger of Allah ﷺ said were four.”
➌ It is narrated from Ibn Abbas (may Allah be pleased with them both) that when the Messenger of Allah ﷺ led the funeral prayer of those killed at Uhud, he said nine takbirs each, then seven, and then four takbirs each:
حتي لحق بالله
“Until he met Allah, the Exalted.”