Maaz came to the Prophet ﷺ and confessed before him four times, so the Prophet ﷺ ordered that he be stoned. He then said to Hezal, "Had you covered him with your garment, it would have been better for you."
حدثنا مسدد حدثنا يحيى عن سفيان عن زيد بن أسلم
أن ماعزا أتى النبي ﷺ فأقر عنده أربع مرات فأمر برجمه وقال لهزال لو سترته بثوبك كان خيرا لك
[Its isnad is hasan] Ahmad narrated it, 5/217, and Nasai in Kubra, no. 7205, from the hadith of Sufyan Thawri, through this route, and the narration of Yahya Qattan from him is understood to be based on direct hearing. Hakim graded it sahih, 4/363, and Dhahabi agreed with him.