Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
darimi:2366Abū Nuʿaym > Bashīr b. al-Muhājir > ʿAbdullāh b. Buraydah from his father

[Machine] I was sitting with the Prophet ﷺ when a man named Ma'iz ibn Malik came to him and confessed to committing adultery. The Prophet ﷺ asked him three times if he was sure, and each time the man confirmed his confession. Then, he came for the fourth time and confessed again. The Prophet ﷺ ordered a pit to be dug for him and he was placed in it up to his chest. The Prophet ﷺ then commanded the people to stone him.  

الدارمي:٢٣٦٦حَدَّثَنَا أَبُو نُعَيْمٍ حَدَّثَنَا بَشِيرُ بْنُ الْمُهَاجِرِ حَدَّثَنِي عَبْدُ اللَّهِ بْنُ بُرَيْدَةَ عَنْ أَبِيهِ قَالَ

كُنْتُ جَالِسًا عِنْدَ النَّبِيِّ ﷺ فَجَاءَهُ رَجُلٌ يُقَالُ لَهُ مَاعِزُ بْنُ مَالِكٍ فَاعْتَرَفَ عِنْدَهُ بِالزِّنَا فَرَدَّهُ ثَلَاثَ مَرَّاتٍ ثُمَّ جَاءَ الرَّابِعَةَ فَاعْتَرَفَ «فَأَمَرَ بِهِ النَّبِيُّ ﷺ فَحُفِرَ لَهُ حُفْرَةٌ فَجُعِلَ فِيهَا إِلَى صَدْرِهِ وَأَمَرَ النَّاسَ أَنْ يَرْجُمُوهُ»