[Machine] They used to say takbeer (saying "Allahu Akbar") seven, five, and six times during the time of the Messenger of Allah ﷺ or they said four times. Umar ibn al-Khattab then gathered the companions of the Messenger of Allah ﷺ and each man informed them of what he had seen. Umar then gathered them together for the funeral prayer and they said four takbeers as long as the prayer. This was narrated by Waki' from Sufyan who said it was four instead of six. And in the narration of Waki' from Mis'ar, from Abdul Malik ibn Iyas ash-Shaybani, from Ibrahim who said: The companions of the Messenger of Allah ﷺ gathered in the house of Abu Mas'ood al-Ansari and they agreed that there should be four takbeers for the funeral prayer.
كَانُوا يُكَبِّرُونَ عَلَى عَهْدِ رَسُولِ اللهِ ﷺ سَبْعًا وَخَمْسًا وَسِتًّا أَوْ قَالَ أَرْبَعًا فَجَمَعَ عُمَرُ بْنُ الْخَطَّابِ ؓ أَصْحَابَ رَسُولِ اللهِ ﷺ فَأَخْبَرَ كُلُّ رَجُلٍ بِمَا رَأَى فَجَمَعَهُمْ عُمَرُ ؓ عَلَى أَرْبَعِ تَكْبِيرَاتٍ كَأَطْوَلِ الصَّلَاةِ وَرَوَاهُ وَكِيعٌ عَنْ سُفْيَانَ فَقَالَ أَرْبَعًا مَكَانَ سِتًّا وَفِيمَا رَوَى وَكِيعٌ عَنْ مِسْعَرٍ عَنْ عَبْدِ الْمَلِكِ بْنِ إِيَاسٍ الشَّيْبَانِيِّ عَنْ إِبْرَاهِيمَ قَالَ اجْتَمَعَ أَصْحَابُ رَسُولِ اللهِ ﷺ فِي بَيْتِ أَبِي مَسْعُودٍ الْأَنْصَارِيِّ فَأَجْمَعُوا أَنَّ التَّكْبِيرَ عَلَى الْجِنَازَةِ أَرْبَعٌ