Jami` at-Tirmidhi, Book 49, Hadith 277 (Tirmidhi 3974)

Narrated 'Ali bin Abi Talib:

that the Messenger of Allah (ﷺ) said: "The best of its women is Khadijah bint Khuwailid, and the best of its women is Mariam bint 'Imran."