Pseudo Jonathan Exodus 1:15

And the Mizraee enslaved the sons of Israel, and made their lives bitter by hard service in clay and bricks, and all the labour of the face of the field; and in all the work which they made them do was hardness. And Pharoh told that he, being asleep, had seen in his dream, and, behold, all the land of Mizraim was placed in one scale of a balance, and a lamb, the young of a sheep, was ill the other scale; and the scale with the lamb in it overweighed. Forthwith he sent and called all the magicians of Mizraim, and imparted to them his dream. Immediately Jannis and Jambres, the chief of the magicians, opened their mouth and answered Pharoh, A certain child is about to be born in the congregation of Israel, by whose hand will be destruction to all the land of Mizraim. Therefore did Pharoh, king of Mizraim, give counsel to the Jehudith midwives, the name of one of whom was Shifra, who is Jokeved, and the name of the other Puvah, who is Miriam her daughter. And he said, When you attend Jehudith women, and see them bear, if it be a male child, you shall kill him; but if a daughter, you may let her live. But the midwives feared before the Lord, and would not do according to what the king of Mizraim had said to them, but they saved the children. And the king of Mizraim called the midwives, and said to them, Why have you done this thing, and have saved the children? And the mid-wives said to Pharoh, The Jehudith women are not as the Mizraite, for they are sturdy and wise-minded: before the midwife cometh to them they lift up their eyes in prayer, supplicating mercy before their Father who is in heaven, who heareth the voice of their prayer, and at once they are heard, and bring forth, and are delivered in peace.

Date: 300-1200 C.E.
* Dates are based on scholarly estimates
New Testament

Matthew 2:13

11 As they came into the house and saw the child with Mary his mother, they bowed down and worshiped him. They opened their treasure boxes and gave him gifts of gold, frankincense, and myrrh. 12 After being warned in a dream not to return to Herod, they went back by another route to their own country. 13 After they had gone, an angel of the Lord appeared to Joseph in a dream and said, “Get up, take the child and his mother and flee to Egypt, and stay there until I tell you, for Herod is going to look for the child to kill him.” 14 Then he got up, took the child and his mother during the night, and went to Egypt. 15 He stayed there until Herod died. In this way what was spoken by the Lord through the prophet was fulfilled: “I called my Son out of Egypt.” 16 When Herod saw that he had been tricked by the wise men, he became enraged. He sent men to kill all the children in Bethlehem and throughout the surrounding region from the age of two and under, according to the time he had learned from the wise men. 17 Then what was spoken by Jeremiah the prophet was fulfilled: 18 “A voice was heard in Ramah, weeping and loud wailing, Rachel weeping for her children, and she did not want to be comforted, because they were gone.” 19 After Herod had died, an angel of the Lord appeared in a dream to Joseph in Egypt 20 saying, “Get up, take the child and his mother, and go to the land of Israel, for those who were seeking the child’s life are dead.” 21 So he got up and took the child and his mother and returned to the land of Israel.

Date: 70-90 C.E.
* Dates are based on scholarly estimates