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.
bukhari:3815Muḥammad > ʿAbdah > Hishām b. ʿUrwah from his father > ʿAbdullāh b. Jaʿfar > ʿAlīā > Rasūl

I heard Messenger of Allah ﷺ saying (as below) Narrated ʿAli: The Prophet ﷺ said, "The best of the world's women is Mary (at her lifetime), and the best of the world's women is Khadija (at her lifetime).  

البخاري:٣٨١٥حَدَّثَنِي مُحَمَّدٌ أَخْبَرَنَا عَبْدَةُ عَنْ هِشَامِ بْنِ عُرْوَةَ عَنْ أَبِيهِ قَالَ سَمِعْتُ عَبْدَ اللَّهِ بْنَ جَعْفَرٍ قَالَ سَمِعْتُ عَلِيًّا ؓ يَقُولُ

سَمِعْتُ رَسُولَ اللَّهِ ﷺ يَقُولُ ح حَدَّثَنِي صَدَقَةُ أَخْبَرَنَا عَبْدَةُ عَنْ هِشَامٍ عَنْ أَبِيهِ قَالَ سَمِعْتُ عَبْدَ اللَّهِ بْنَ جَعْفَرٍ عَنْ عَلِيٍّ ؓ عَنِ النَّبِيِّ ﷺ قَالَ خَيْرُ نِسَائِهَا مَرْيَمُ وَخَيْرُ نِسَائِهَا خَدِيجَةُ