Hazrat Anas bin Malik (may Allah be pleased with him) narrated that I was with the Prophet Muhammad (peace and blessings be upon him) when a man, Ka'b bin Amr, came and said, "O Messenger of Allah! A legal punishment (hadd) has become obligatory upon me, so carry out the hadd on me." He narrated that the Prophet (peace and blessings be upon him) did not ask him anything, then the time for prayer came and that man also performed the prayer with the Prophet (peace and blessings be upon him). When the Prophet (peace and blessings be upon him) had finished the prayer, that man again came and stood before the Prophet (peace and blessings be upon him) and said, "O Messenger of Allah! A legal punishment (hadd) has become obligatory upon me, so carry out the hadd on me according to the Book of Allah." The Prophet (peace and blessings be upon him) said to him, "Did you not just pray with us?" He said, "Yes." The Prophet (peace and blessings be upon him) said, "Then Allah has forgiven your sin." Or he said, "Your mistake or your hadd (has been forgiven)."
Hadith Referenceاللؤلؤ والمرجان / كتاب التوبة / 1759
Hadith Gradingمحدثین:«صحیح»
Hadith Takhrij«صحیح، أخرجه البخاري في: 86 كتاب الحدود: 27 باب إذا أقر بالحد ولم يبين هل للإمام أن يستر عليه»