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]. (RU)
App reference (RU): Book 7, Hadith 38 (RU)
Arabic/English book reference (RU): Book 7, Hadith 931 (RU)