We were forbidden to accompany funeral processions but not strictly.

Sahih al-Bukhari Book 23 Hadith 40

Sahih al-Bukhari #1278

Funerals (Al-Janaa'iz) 23:40

Narrated Um 'Atiyya:

We were forbidden to accompany funeral processions but not strictly.

Chapter: (Is it permissible for) woman to accompany the funeral procession

Grade: Sahih