Bulugh al-Maram
Umm ‘Atiyah (RAA) narrated, ‘We were forbidden to accompany funeral processions, but this prohibition was not mandatory for us.’ Agreed upon.
وَعَنْ أُمِّ عَطِيَّةَ رَضِيَ اللَّهُ عَنْهَا قَالَتْ: { نُهِينَا عَنِ اتِّبَاعِ الْجَنَائِزِ, وَلَمْ يُعْزَمْ عَلَيْنَا } مُتَّفَقٌ عَلَيْه ِ 1 .
Reference