Mughira bin Shuba reported,

When I arrived in Najran, the people there asked me, "You recite, 'Sister of Harun,' yet Musa came before Isa by such and such a length of time."When I returned to the Messenger of Allah ﷺ, I asked him about this, and he replied, "They used to name their children after their prophets and the righteous people who came before them."

Azami 8306

Sahih

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

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

الأعظمي 8306صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
News of the ancients
Section
Maryam being the sister of a Harun other than the Prophet Harun in the time of Musa
Numbering
Jami al-Kamil 8306 (2nd edition)
Azami 8306