It is interesting that in both the Islamic and Christian view Mary had to bear the burden of the social stigma of an unmarried pregnant woman. In the eyes of society she had committed a terrible sin - and yet she hadn't really!
What does Islam say about this? Does it have any significance?
Allah says in Surah Maryum (Mary):
She (mary) said: When shall I have a boy and no mortal has yet touched me, nor have I been unchaste?
He said: "So (it will be): Thy Lord said , 'that is easy for Me: and (We wish) to appoint him as a Sign unto men and a Mercy from Us':It is a matter (so) decreed."
And she conceived him, and she withdrew with him to a far place.
And the pains of childbirth drove her to the trunk of a palm-tree: She cried (in her anguish): "Ah! would that I had died before this! would that I had been a thing forgotten and out of sight!"
But (a voice) cried to her from beneath the (palm-tree): "Grieve not! surely your Lord has made a stream to flow beneath you;
And shake the trunk of the palm-tree toward thee, thou wilt cause ripe dates to fall upon thee.
So eat and drink and refresh the eye. Then if you see any mortal, say: Surely I have vowed a fast to the Beneficent Allah, so I shall not speak to any man today.
At length she brought the (babe) to her people, carrying him (in her arms). They said: "O Mary! truly an amazing thing hast thou brought!
"O sister of Aaron! Thy father was not a man of evil, nor thy mother a woman unchaste!"
But she pointed to the babe. They said: "How can we talk to one who is a child in the cradle?"
He said: "I am indeed a servant of Allah: He hath given me revelation and made me a prophet;
"And He hath made me blessed wheresoever I be, and hath enjoined on me Prayer and Charity as long as I live;
And (hath made me) dutiful toward her who bore me, and hath not made me arrogant, unblest.
"So peace is on me the day I was born, the day that I die, and the day that I shall be raised up to life (again)"!
Such (was) Jesus the son of Mary: (it is) a statement of truth, about which they (vainly) dispute.
[Surah Maryum 19:20-34]