Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:6945Abū ʿAbdullāh al-Ḥāfiẓ > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > Yaḥyá b. Abū Ṭālib > ʿAbd al-Wahhāb b. ʿAṭāʾ > Dāwud / Ibn Abū Hind > ʿĀmir > ʿAlqamah

[Machine] I said to Ibn Mas'ud, "Indeed, the companions of Mu'adh have come from Sham and they have recited the takbeer (saying Allahu Akbar) five times over the deceased." So Ibn Mas'ud replied, "There is no specific time for reciting the takbeer over the deceased like the imam recites. So when the imam departs, then you may depart."  

البيهقي:٦٩٤٥أَخْبَرَنَا أَبُو عَبْدِ اللهِ الْحَافِظُ ثنا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ ثنا يَحْيَى بْنُ أَبِي طَالِبٍ أنبأ عَبْدُ الْوَهَّابِ بْنُ عَطَاءٍ أنبأ دَاوُدُ يَعْنِي ابْنَ أَبِي هِنْدَ عَنْ عَامِرٍ عَنْ عَلْقَمَةَ قَالَ

قُلْتُ لِابْنِ مَسْعُودٍ ؓ إِنَّ أَصْحَابَ مُعَاذٍ قَدِمُوا مِنَ الشَّامِ فَكَبَّرُوا عَلَى مَيِّتٍ لَهُمْ خَمْسًا فَقَالَ ابْنُ مَسْعُودٍ لَيْسَ عَلَى الْمَيِّتِ مِنَ التَّكْبِيرِ وَقْتَ كَبَّرَ مَا كَبَّرَ الْإِمَامُ فَإِذَا انْصَرَفَ الْإِمَامُ فَانْصَرِفْ