It is narrated from the Mother of the Believers, Umm Salamah (may Allah be pleased with her), that in the time of the Messenger of Allah (peace and blessings be upon him), when the salam of the obligatory prayer was given, the women would get up immediately and leave, while the Messenger of Allah (peace and blessings be upon him) and the men praying behind him would remain sitting there; then, when the Messenger of Allah (peace and blessings be upon him) stood up, the other people would also get up.
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلاة / 3055