Anas reported that a person came to Allah's Apostle (ﷺ) said:
Allah's Messenger, I have committed an offence which deserves imposition of haad, so impose it upon me according to the Book of Allah. Thereupon he said: Were you not present with us at the time of prayer? He said: Yes. Thereupon he said: You have been granted pardon.
Reference: Sahih Muslim 2764 In-book : Book 50, Hadith 52 USC-MSA web (English) : Book 37, Hadith 6660 (deprecated)
Help us gift a modern, ad-free Islamic application for the Muslim Ummah. Your donation will be recorded as Sadaqah Jariyah in your book of deeds, In Sha Allah.