A man came to Sayyiduna Umar bin Khattab (may Allah be pleased with him) who had mistakenly had intercourse with a woman who was not lawful for him. Sayyiduna Ali (may Allah be pleased with him) said: "Give the man the prescribed punishment in secret, and the woman the prescribed punishment in public."
Hadith Referenceسنن سعید بن منصور / كتاب الطلاق / 3328
Hadith Gradingمحدثین:إسناده مرسل
Hadith Takhrij«إسناده مرسل، وأخرجه سعيد بن منصور فى «سننه» ترقيم الدرالسلفية برقم:، 2151، وابن أبى شيبة فى «مصنفه» برقم: 28924» أبو روح شبيب: ثقہ طبقہ ثالثہ