Hebrew Bible

Exodus 34:28

27 The Lord said to Moses, “Write down these words, for in accordance with these words I have made a covenant with you and with Israel.” 28 So he was there with the Lord 40 days and 40 nights; he did not eat bread, and he did not drink water. He wrote on the tablets the words of the covenant, the Ten Commandments. 29 Now when Moses came down from Mount Sinai with the two tablets of the testimony in his hand—when he came down from the mountain, Moses did not know that the skin of his face shone while he talked with him. 30 When Aaron and all the Israelites saw Moses, the skin of his face shone, and they were afraid to approach him.

Date: 5th Century B.C.E. (Final composition)
* Dates are based on scholarly estimates
New Testament

Matthew 4:2

1 Then Jesus was led by the Spirit into the wilderness to be tempted by the devil. 2 After he fasted 40 days and 40 nights he was famished. 3 The tempter came and said to him, “If you are the Son of God, command these stones to become bread.” 4 But he answered, “It is written, ‘Man does not live by bread alone, but by every word that comes from the mouth of God.’” 5 Then the devil took him to the holy city, had him stand on the highest point of the temple,

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