Ma'iz came to the Prophet (ﷺ) and admitted (having committed adultery) four times in his presence so he ordered him to be stoned to death, but said to Huzzal: If you had covered him with your garment, it would have been better for you.
Sunan Abi Dawud Book 40, Hadith 27