Umm Atiyyah (May Allah be pleased with her) reported:
We (womenfolk) were prohibited from accompanying a funeral procession, but we were not compelled (not to do so).[Al-Bukhari and Muslim]. (IT)
App reference (IT): Book 7, Hadith 38 (IT)
Arabic/English book reference (IT): Book 7, Hadith 931 (IT)