Jami` at-Tirmidhi, Volume 3, Book 15, Hadith 1451 (DarusSalam)

Habib bin Salim said: "A man was brought to An-Nu'man bin Bashir who had relations with the slave girl of his wife. He said: 'I give you judgement about her case according to the judgement of the Messenger of Allah: If she made her lawful for him, then I will lash him one hundred times, and if she did not make her lawful, then I will stone him."

حَدَّثَنَا عَلِيُّ بْنُ حُجْرٍ، حَدَّثَنَا هُشَيْمٌ، عَنْ سَعِيدِ بْنِ أَبِي عَرُوبَةَ، وَأَيُّوبَ بْنِ مِسْكِينٍ، عَنْ قَتَادَةَ، عَنْ حَبِيبِ بْنِ سَالِمٍ، قَالَ رُفِعَ إِلَى النُّعْمَانِ بْنِ بَشِيرٍ رَجُلٌ وَقَعَ عَلَى جَارِيَةِ امْرَأَتِهِ فَقَالَ لأَقْضِيَنَّ فِيهَا بِقَضَاءِ رَسُولِ اللَّهِ صلى الله عليه وسلم لَئِنْ كَانَتْ أَحَلَّتْهَا لَهُ لأَجْلِدَنَّهُ مِائَةً وَإِنْ لَمْ تَكُنْ أَحَلَّتْهَا لَهُ رَجَمْتُهُ ‏.‏

sunnah.com