Ibn Umar reported: The Messenger of Allah, peace and blessings be upon him, said, “It would be better if you had left this door to the mosque for women.” Nafi’ said, “Ibn Umar never again entered through it until the day he died.”
Source: Sunan Abī Dāwūd 462
Grade: Sahih (authentic) according to Al-Albani
عَنْ ابْنِ عُمَرَ قَالَ قَالَ رَسُولُ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ لَوْ تَرَكْنَا هَذَا الْبَابَ لِلنِّسَاءِ قَالَ نَافِعٌ فَلَمْ يَدْخُلْ مِنْهُ ابْنُ عُمَرَ حَتَّى مَاتَ
462 سنن أبي داود كتاب الصلاة باب في اعتزال النساء في المساجد عن الرجال
462 المحدث الألباني خلاصة حكم المحدث صحيح في صحيح أبي داود