Mary's Family History
Allah declared that He had elected Adam and the elite of his offspring who obey Allah. Then He specified the family of Abraham , which includes the sons of Ishmael , and the family of Imran, the father of Mary.
Muhammad Ibn Ishaaq stated that he was Imran Ibn Bashim, Ibn Amun, Ibn Misha, Thn Hosqia, Ibn Ahriq, Ibn Mutham, Ibn Azazia, Ibn Amisa, Thn Yamish, Ibn Ahrihu, Ibn Yazem, Thn Yahfashat, Thn Eisha, Thn Iyam, Thn Rahbaam, Ibn David (Dawud).
Mary's Birth - Longer Version
Prophet Zechariah's wife's sister had a daughter named Hannah. She was married to Imran, a leader of the Israelites. For many years the couple remained childless. Whenever Hannah saw another woman with a child, her longing for a baby increased. Although years had passed, she never lost hope. She believed that one day Allah would bless her with a child, on whom she would shower all her motherly love.
She turned to the Lord of the heavens and the earth and pleaded with Him for a child. She would offer the child in the service of Allah's house, in the temple of Jerusalem. Allah granted her request. When she learned she was pregnant she was the happiest woman alive, and thanked Allah for His gift. Her overjoyed husband Imran also thanked Allah for His mercy.
However, while she was pregnant her husband passed away. Hannah wept bitterly. Alas, 'Imran did not live to see their child for whom they had so longed. She gave birth to a girl, and again turned to Allah in prayer: "0 my Lord, I have delivered a female child, ... and the male is not like the female, and I have named her Mary, and I seek refuge with You (Allah) for her and her offspring from Satan, the outcast. Surah 3: 36