I heard the Messenger of Allah ﷺ say, "I am the closest of people to the son of Maryam. The prophets are sons of one father from different mothers, and there is no prophet between him and me."
حدثنا أحمد بن صالح حدثنا ابن وهب قال أخبرني يونس عن ابن شهاب أن أبا سلمة بن عبد الرحمن أخبره أن
سمعت رسول الله ﷺ يقول أنا أولى الناس بابن مريم الأنبياء أولاد علات وليس بيني وبينه نبي
Muslim narrated it in the chapter on virtues, section on the virtues of Isa , hadith no. 2365, from the hadith of Abdullah bin Wahb, and Bukhari narrated it in the chapters on the prophets, section on the saying of Allah Most High, "And mention in... " [Maryam], hadith no. 3442, from the hadith of Ibn Shihab Zuhri, with the same wording.