Sahih al-Bukhari 6840
Sahih al-Bukhari · Book 86: Limits and Punishments set by Allah (Hudood) · The legal regulation for non-Muslims under the protection of a Muslim state
Narrated Ash-Shaibani:
حَدَّثَنَا مُوسَى بْنُ إِسْمَاعِيلَ ، حَدَّثَنَا عَبْدُ الْوَاحِدِ ، حَدَّثَنَا الشَّيْبَانِيُّ ، سَأَلْتُ عَبْدَ اللَّهِ بْنَ أَبِي أَوْفَى عَنِ الرَّجْمِ، فَقَالَ رَجَمَ النَّبِيُّ صلى الله عليه وسلم. فَقُلْتُ أَقَبْلَ النُّورِ أَمْ بَعْدَهُ قَالَ لاَ أَدْرِي. تَابَعَهُ عَلِيُّ بْنُ مُسْهِرٍ وَخَالِدُ بْنُ عَبْدِ اللَّهِ وَالْمُحَارِبِيُّ وَعَبِيدَةُ بْنُ حُمَيْدٍ عَنِ الشَّيْبَانِيِّ . وَقَالَ بَعْضُهُمُ الْمَائِدَةُ. وَالأَوَّلُ أَصَحُّ .
I asked `Abdullah bin Abi `Aufa about the Rajam (stoning somebody to death for committing illegal sexual intercourse). He replied, "The Prophet (ﷺ) carried out the penalty of Rajam," I asked, "Was that before or after the revelation of Surat-an-Nur?" He replied, "I do not know."