Sahih al-Bukhari, Book 60, Hadith 103 (In-Book) ⓘ
Narrated `Ali: I heard the Prophet saying, "Mary, the daughter of `Imran, was the best among the women (of the world of her time) and Khadija is the best amongst the women. (of this nation).
حَدَّثَنِي أَحْمَدُ بْنُ أَبِي رَجَاءٍ، حَدَّثَنَا النَّضْرُ، عَنْ هِشَامٍ، قَالَ أَخْبَرَنِي أَبِي قَالَ، سَمِعْتُ عَبْدَ اللَّهِ بْنَ جَعْفَرٍ، قَالَ سَمِعْتُ عَلِيًّا ـ رضى الله عنه ـ يَقُولُ سَمِعْتُ النَّبِيَّ صلى الله عليه وسلم يَقُولُ " خَيْرُ نِسَائِهَا مَرْيَمُ ابْنَةُ عِمْرَانَ، وَخَيْرُ نِسَائِهَا خَدِيجَةُ " .
also referenced under: Hadith 3432 (DarusSalam) & Volume 4, Book 55, Hadith 642 (USC-MSA)