Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
bayhaqi:15164Abū Saʿīd b. Abū ʿAmr > Abū al-ʿAbbās Muḥammad b. Yaʿqūb > al-Rabīʿ b. Sulaymān > al-Shāfiʿī > Mālik > Nāfiʿ > Ibn ʿUmar

[Machine] If a person divorces his wife twice, it is prohibited for him to remarry her until she marries another man, whether she was a free woman or a slave. The waiting period for a free woman is three menstrual cycles, and the waiting period for a slave woman is two menstrual cycles. This is the case.  

البيهقي:١٥١٦٤أَخْبَرَنَا أَبُو سَعِيدِ بْنُ أَبِي عَمْرٍو نا أَبُو الْعَبَّاسِ مُحَمَّدُ بْنُ يَعْقُوبَ أنا الرَّبِيعُ بْنُ سُلَيْمَانَ أنا الشَّافِعِيُّ أنا مَالِكٌ عَنْ نَافِعٍ عَنِ ابْنِ عُمَرَ ؓ قَالَ

إِذَا طَلَّقَ الْعَبْدُ امْرَأَتَهُ اثْنَتَيْنِ فَقَدْ حُرِّمَتْ عَلَيْهِ حَتَّى تَنْكِحَ زَوْجًا غَيْرَهُ حُرَّةً كَانَتْ أَوْ أَمَةً وَعِدَّةُ الْحُرَّةِ ثَلَاثُ حَيْضَاتٍ وَعِدَّةُ الْأَمَةِ حَيْضَتَانِ هَكَذَا  

رَوَاهُ مَالِكٌ فِي الْمُوَطَّأِ

See similar narrations below:

Collected by Mālik
malik:29-55Mālik > Nāfiʿ

Yahya related to me from Malik from Nafi that Abdullah ibn Umar said, "When the slave divorces his wife twice, she is haram for him until she has married another husband, whether she is free or a slave. The idda of a free woman is three menstrual periods, and the idda of a slave-girl is two periods.  

مالك:٢٩-٥٥وَحَدَّثَنِي عَنْ مَالِكٍ عَنْ نَافِعٍ

أَنَّ عَبْدَ اللَّهِ بْنَ عُمَرَ كَانَ يَقُولُ إِذَا طَلَّقَ الْعَبْدُ امْرَأَتَهُ تَطْلِيقَتَيْنِ فَقَدْ حَرُمَتْ عَلَيْهِ حَتَّى تَنْكِحَ زَوْجًا غَيْرَهُ حُرَّةً كَانَتْ أَوْ أَمَةً وَعِدَّةُ الْحُرَّةِ ثَلاَثُ حِيَضٍ وَعِدَّةُ الأَمَةِ حَيْضَتَانِ