Sayyiduna Abu Maryam al-Ghassani (may Allah be pleased with him) said: I came to the Messenger of Allah (peace and blessings be upon him) and said: Tonight a daughter has been born to me. The Prophet (peace and blessings be upon him) said: "Tonight Surah Maryam was revealed to me; name her Maryam." So she was named Maryam.
Hadith Referenceالمعجم الكبير للطبراني / مسند من يعرف بالكنى / 19037