Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
ahmad:22896Wakīʿ > ʿAbd al-Ḥamīd b. Bahrām > Shahr b. Ḥawshab > ʿAbd al-Raḥman b. Ghanm

[Machine] "Abu Malik Al-Ash'ari said to his people, 'Shall I not lead you in performing the prayer of the Messenger of Allah ﷺ?' So the men formed the first row, followed by the boys behind the men, and then the women formed their row behind the boys."  

أحمد:٢٢٨٩٦حَدَّثَنَا وَكِيعٌ حَدَّثَنِي عَبْدُ الْحَمِيدِ بْنُ بَهْرَامَ عَنْ شَهْرِ بْنِ حَوْشَبٍ عَنْ عَبْدِ الرَّحْمَنِ بْنِ غَنْمٍ قَالَ قَالَ

أَبُو مَالِكٍ الْأَشْعَرِيُّ لِقَوْمِهِ أَلَا أُصَلِّي لَكُمْ صَلَاةَ رَسُولِ اللهِ ﷺ فَصَفَّ الرِّجَالُ ثُمَّ صَفَّ الْوِلْدَانُ خَلْفَ الرِّجَالِ ثُمَّ صَفَّ النِّسَاءُ خَلْفَ الْوِلْدَانِ