The prayer of one man and one woman:
If a man has his wife or a mahram woman with him, the man stands in front and the woman stands behind. That a woman standing alone forms a row is established by the consensus of the Ummah.
🌸Abdullah bin Abi Talha (may Allah have mercy on him) narrates:
إن أبا طلحة دعا رسول الله صلى الله عليه وسلم إلى عمير بن أبي طلحة حين توفي، فأتاهم رسول الله صلى الله عليه وسلم، فصلى عليه في منزلهم، فتقدم رسول الله صلى الله عليه وسلم، وكان أبو طلحة وراءه، وأم سليم وراء أبي طلحة، ولم يكن معهم غيرهم .
“Umayr, the son of Sayyiduna Abu Talha (may Allah be pleased with him), died, so he invited the Messenger of Allah ﷺ. He ﷺ came and led the funeral prayer for Umayr in their house. The Messenger of Allah ﷺ went forward, Abu Talha (may Allah be pleased with him) stood behind him ﷺ, and Umm Sulaym (may Allah be pleased with him) stood behind her husband Abu Talha (may Allah be pleased with him). There was no one else there besides them.”
Imam al-Hakim (may Allah have mercy on him) declared this hadith “sahih” (authentic) according to the criteria of Sahih al-Bukhari and Muslim (may Allah have mercy on them), and Hafiz al-Dhahabi (may Allah have mercy on him) agreed with him.
This way of forming rows is specific to the funeral prayer, in which a man may stand alone behind the imam, whereas in the ordinary prayers the prayer of a man alone behind the row is not valid.
🌸Abu Sa’id (may Allah have mercy on him), the freed slave of Sayyiduna Abu Usayd (may Allah be pleased with him), narrates:
تزوجت امرأة، فكان عندي ليلة زفاف امرأتي نفر من أصحاب رسول الله صلى الله عليه وسلم، فلما حضرت الصلاة أراد أبو ذر أن يتقدم فيصلي، فجبذه حذيفة، وقال : رب البيت أحق بالصلاة، فقال لأبي مسعود : أكذلك؟ قال : نعم ، قال أبو سعيد : فتقدمت، فصليت بهم، وأنا يومئذ عبد، وأمراني إذا أتيت بامرأتي أن أصلي ركعتين، وأن تصلي خلفي إن فعلت .
“I got married. On the night of my wedding, a number of the Companions were present with me. The time for prayer came, and Abu Dharr (may Allah be pleased with him) wanted to lead the prayer, but Hudhayfah (may Allah be pleased with him) pulled him back and said: The master of the house is more deserving of leading the prayer. Then he asked Abu Mas’ud (may Allah be pleased with him): Is it not so? He said: Yes! Abu Sa’id (may Allah have mercy on him) narrates that I went forward and led them in prayer, although I was a slave at that time. Abu Dharr (may Allah be pleased with him) and Hudhayfah (may Allah be pleased with him) instructed me that when I go to my wife, I should pray two rak’ahs, and if she also wants to pray, she should pray behind me.”