Funny and very interesting. Please tell where it is written in your book that Mary was married by drawing the lots. Let us have it please. Do not forget. It could be useful. Welcome.
Infancy Gospel of Pseudo-Matthew Chapter 8
– Now it came to pass, when she was fourteen years old, and on this account there was occasion for the Pharisees’ saying that it was now a custom that no woman of that age should abide in the temple of God, they fell upon the plan of sending a herald through all the tribes of lsrael, that on the third day all should come together into the temple of the Lord. And when all the people had come together, Abiathar the high priest rose, and mounted on a higher step, that he might be seen and heard by all the people; and when great silence had been obtained, he said: Hear me, O sons of Israel, and receive my words into your ears. Ever since this temple was built by Solomon, there have been in it virgins, the daughters of kings and the daughters of prophets, and of high priests and priests; and they were great, and worthy of admiration. But when they came to the proper age they were given in marriage, and followed the course of their mothers before them, and were pleasing to God. But a new order of life has been found out by Mary alone, who promises that she will remain a virgin to God.
Wherefore it seems to me, that through our inquiry and the answer of God we should try to ascertain to whose keeping she ought to be entrusted. Then these words found favour with all the synagogue. And the lot was east by the priests upon the twelve tribes, and the lot fell upon the tribe of Judah. And the priest said:
To-morrow let every one who has no wife come, and bring his rod in his hand. Whence it happened that Joseph brought his rod along with the young men. And the rods having been handed over to the high priest, he offered a sacrifice to the Lord God, and inquired of the Lord. And the Lord said to him: Put all their rods into the holy of holies of God, and let them remain there, and order them to come to thee on the morrow to get back their rods; and the man from the point of whose rod a dove shall come forth, and fly towards heaven, and in whose hand the rod, when given back, shall exhibit this sign, to him let Mary be delivered to be kept.
Infancy Gospel of James (Protevangelium) Chapter 8
And her parents went down marvelling, and praising the Lord God, because the child had not turned back. And Mary was in the temple of the Lord as if she were a dove that dwelt there, and she received food from the hand of an angel. And when she was twelve years old there was held a council of the priests, saying: Behold, Mary has reached the age of twelve years in the temple of the Lord. What then shall we do with her, test perchance she defile the sanctuary of the Lord? And they said to the high priest: Thou standest by the altar of the Lord; go in, and pray concerning her; and whatever the Lord shall manifest unto thee, that also will we do. And the high priest went in, taking the robe with the twelve bells into the holy of holies; and he prayed concerning her. And behold an angel of the Lord stood by him, saying unto him:
Zacharias, Zacharias, go out and assemble the widowers of the people, and let them bring each his rod; and to whomsoever the Lord shall show a sign, his wife shall she be. And the heralds went out through all the circuit of Judaea, and the trumpet of the Lord sounded, and all ran.
Both of the apocryphals above were written many centuries before your Koran. Thus, the narrative in the Koran related to casting lots to determine who would be Mary’s guard was nothing new or unknown at Mohammad’s time.
