[Machine] "When one of you follows a funeral procession, he should take hold of the sides of the bed completely, as this is from the Sunnah. Then he should either perform voluntary prayers afterwards or leave." The wording is from the Hadith of Abu Nuaim.
«إِذَا اتَّبَعَ أَحَدُكُمْ جِنَازَةً فَلْيَأْخُذْ بِجَوَانِبِ السَّرِيرِ كُلِّهِ فَإِنَّهُ مِنَ السُّنَّةِ ثُمَّ لْيَتَطَوَّعْ بَعْدُ أَوْ لِيَدَعْ» وَاللَّفْظُ لِحَدِيثِ أَبِي نُعَيْمٍ