Muwatta Malik #1180
Marriage
The Arabic includes the chain of narration (sanad) and the collector's commentary; the English translation shows the Prophet's words only.
وَحَدَّثَنِي عَنْ مَالِكٍ، أَنَّهُ بَلَغَهُ أَنَّ سَعِيدَ بْنَ الْمُسَيَّبِ، وَسُلَيْمَانَ بْنَ يَسَارٍ، سُئِلاَ عَنْ رَجُلٍ، زَوَّجَ عَبْدًا لَهُ جَارِيَةً فَطَلَّقَهَا الْعَبْدُ الْبَتَّةَ ثُمَّ وَهَبَهَا سَيِّدُهَا لَهُ هَلْ تَحِلُّ لَهُ بِمِلْكِ الْيَمِينِ فَقَالاَ لاَ تَحِلُّ لَهُ حَتَّى تَنْكِحَ زَوْجًا غَيْرَهُ .
Yahya related to me from Malik that he had heard that Said ibn
al-Musayyab and Sulayman ibn Yasar were asked whether, when a man
married a slave of his to a slave-girl and the slave divorced her
irrevocably, and then her master gave her to the slave, she was then
halal for the slave by the possession of the right hand. They said,
"No. She is not halal until she has married another husband."
About Muwatta Malik
This hadith is #1180 from Muwatta Malik, in the Book of Marriage.