(37) باب أَحْكَامِ أَهْلِ الذِّمَّةِ وَإِحْصَانِهِمْ إِذَا زَنَوْا وَرُفِعُوا إِلَى الإِمَامِ
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."
Reference: Sahih al-Bukhari 6840
In-book reference: Book 86, Hadith 64
USC-MSA web (English) reference(deprecated numbering scheme): Vol. 8, Book 82, Hadith 824