All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad is His slave and Messenger.
Anas narrated: “The Prophet prayed in the house of Umm Sulaym and I along with an orphan stood behind him while Umm Sulaym (stood) behind us.” [Al-Bukhari and Muslim]
This Hadeeth proves that a woman can pray behind a non-Mahram man provided they are not in seclusion.
Allah knows best.