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

Yahya related to me the like of that from Malik from Ibn Shihab. Malik said, about a slave who divorced a slave-girl but didnot make it absolute, "He can return to her. If he then dies while sheis still in the idda from her divorce, she does the idda of a slave-girl whose husband dies, and it is two months and five days. If shehas been set free and he can return to her, and she does not choose toseparate after she has been set free, and he dies while she is in theidda from the divorce, she does the idda of a free woman whose husbandhas died, four months and ten days. That is because the idda ofwidowhood befell her while she was free, so her idda is the idda of afree woman." Malik said, "That is what is done among us." Translation Not Available

Book Ref: Muwatta Imam Malik Book 29 Hadith 1259
Web Ref:  Muwatta Imam Malik Book 29 Hadith 94