Mughira bin Shuba reported,

When I arrived in Najran, the people there questioned me, saying, "You recite 'Sister of Harun' [Maryam 19:28], yet Musa lived so many generations before Isa."When I returned to the Messenger of Allah ﷺ, I asked him about this, and he replied, "They used to name their children after the prophets and the righteous people who came before them."

Azami 12707

Sahih

عن المغيرة بن شعبة قال

لما قدمت نجران، سألوني، فقالوا: إنكم تقرؤون: {يتأخت هرون} وموسى قبل عيسى بكذا وكذا. فلما قدمت على رسول الله ﷺ سألته عن ذلك، فقال: إنهم كانوا يسمون بأنبيائهم والصالحين قبلهم.

الأعظمي 12707صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Tafsir of the great Quran
Chapter
Virtues of Surah Baqarah
Section
His saying, "Do you then hope that they would believe in you while a group of them used to hear the words of Allah"
Numbering
Jami al-Kamil 12707 (2nd edition)
Azami 12707