It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) offered the funeral prayer over a woman who had committed adultery, who had died in the state of postnatal bleeding (nifas) together with her child.
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 13371