Sahih al-Bukhari 1278
Sahih al-Bukhari · Book 23: Funerals (Al-Janaa'iz) · (Is it permissible for) woman to accompany the funeral procession
Narrated Um 'Atiyya:
حَدَّثَنَا قَبِيصَةُ بْنُ عُقْبَةَ ، حَدَّثَنَا سُفْيَانُ ، عَنْ خَالِدٍ الْحَذَّاءِ ، عَنْ أُمِّ الْهُذَيْلِ ، عَنْ أُمِّ عَطِيَّةَ ـ رضى الله عنها ـ قَالَتْ نُهِينَا عَنِ اتِّبَاعِ الْجَنَائِزِ، وَلَمْ يُعْزَمْ عَلَيْنَا.
We were forbidden to accompany funeral processions but not strictly.