Protevangelium of James 10

1Now there was a council of the priests, and they said: Let us make a veil for the temple of the Lord. And the priest said: Call unto me pure virgins of the tribe of David. And the officers departed and sought and found seven virgins. And the priests called to mind the child Mary, that she was of the tribe of David and was undefiled before God: and the officers went and fetched her. And they brought them into the temple of the Lord, and the priest said: Cast me lots, which of you shall weave the gold and the undefiled (the white) and the fine linen and the silk and the hyacinthine, and the scarlet and the true purple. And the lot of the true purple and the scarlet fell unto Mary, and she took them and went unto her house. [And at that season Zacharias became dumb, and Samuel was in his stead until the time when Zacharias spake again .] But Mary took the scarlet and began to spin it.