[Machine] "If any of you follows a funeral procession, let him take the sides of the bed entirely for it is from the Sunnah. Then let him either offer additional prayers or leave." And the wording is from the hadith of Abu Nuaim.
«إِذَا اتَّبَعَ أَحَدُكُمْ جِنَازَةً فَلْيَأْخُذْ بِجَوَانِبِ السَّرِيرِ كُلِّهِ فَإِنَّهُ مِنَ السُّنَّةِ ثُمَّ لْيَتَطَوَّعْ بَعْدُ أَوْ لِيَدَعْ» وَاللَّفْظُ لِحَدِيثِ أَبِي نُعَيْمٍ