They both heard the Messenger of Allah ﷺ being asked about a slave-woman who commits fornication while not married. He said, "Flog her. Then if she fornicates again, flog her. Then sell her after the third or fourth time."
حدثني زهير بن حرب حدثنا يعقوب حدثنا أبي عن صالح قال حدث ابن شهاب أن عبيد الله أخبره أن
سمعا رسول الله ﷺ يسأل عن الأمة تزني ولم تحصن قال اجلدوها ثم إن زنت فاجلدوها ثم بيعوها بعد الثالثة أو الرابعة