“Abu al-Hassan ‘Alayhi al-Salam, has said, ‘When performing Salah (prayer) for a deceased woman you must stand up next to her head and for a man stand up next to his midsection.’”
Al-Kāfi #665“When abu ‘Abd Allah (a.s.), performed Salah (prayer) for a deceased man and a deceased woman, he (the Imam) would set forward woman, then...