Mughira bin Shuba reported,

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

Azami 14489

Sahih

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

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

الأعظمي 14489صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Superior moral conduct
Chapter
Names, kunyas, and titles
Section
Recommendation of naming with the names of the prophets
Numbering
Jami al-Kamil 14489 (2nd edition)
Azami 14489