Hadithcore
Riyad as-Salihin, 931

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). <b>[Al-Bukhari and Muslim]</b>.

وعن أم عطية رضي الله عنها قالت‏:‏ نهينا عن اتباع الجنائز، ولم يعزم علينا‏"‏ ‏(‏‏(‏متفق عليه‏)‏‏)‏ ‏.‏ ‏"‏ومعناه ‏"‏ ولم يشدد في النهي كما يشدد في المحرمات‏.‏

References1 variant
In-Book Reference
Book 6, Hadith 38
Sharh · explanationclick to expand
<b>Guidance from the Hadith:</b><br> 1) The only source of commands and forbiddances in Islamic legislation is the divine revelation sent down to the Prophet. So, when a Companion says, “we were forbidden”, this means that the Prophet (may Allah’s peace and blessings be upon him) was the one who forbade them.<br> 2) It is disliked for women to follow funeral processions.<br> 3) If violations of the Shariah arise because of women following funeral processions, like wailing and slapping faces, mingling of men and women, or the existence of temptation, the attendance by women becomes a prohibition (i.e it becomes prohibited rather than only forbidden, due to the evil consequences resulting from it).
Related hadiths1
Compare isnād across 1 related chains →