Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) says: Abdullah bin Ubayy (bin Salul) had a slave girl who used to commit zina (fornication) in the Jahiliyyah. When zina was made unlawful, he said: "Will you not commit zina now?" She said: "No, by Allah! I will never commit zina." Thereupon this verse was revealed: "And do not compel your slave girls to prostitution" [Surah al-Nur: 33].
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 11697