It is narrated from Hazrat Jabir (may Allah be pleased with him) that Hazrat Ma'iz came and confessed to adultery before the Prophet (peace and blessings be upon him) four times, so the Prophet (peace and blessings be upon him) ordered him to be stoned. The narrator did not mention flogging.