Muwatta Imam Malik Book of Divorce, Hadith 85
Yahya related to me from Malik from Hisham ibn 'Urwa from his father that al-Miswar ibn Makhrama told him that Subaya al-Aslamiya gave birth a few nights after the death of her husband. The Messenger of Allah ﷺ said to her, "You are free to marry, so marry whomever you wish."
وَحَدَّثَنِي عَنْ مَالِكٍ، عَنْ هِشَامِ بْنِ عُرْوَةَ، عَنْ أَبِيهِ، عَنِ الْمِسْوَرِ بْنِ مَخْرَمَةَ، أَنَّهُ أَخْبَرَهُ أَنَّ سُبَيْعَةَ الأَسْلَمِيَّةَ نُفِسَتْ بَعْدَ وَفَاةِ زَوْجِهَا بِلَيَالٍ فَقَالَ لَهَا رَسُولُ اللَّهِ ﷺ " قَدْ حَلَلْتِ فَانْكِحِي مَنْ شِئْتِ " .