Al-Sha'bi said: When the funeral prayer for women and men is offered together, the men will be placed near the imam and the women near the qiblah.