Deuteronomy - Chapter 9
Moses reminds the people of the time he went up the mountain to receive the commandments from God on two stone tablets. He stayed on the mountain forty days and forty nights, and he ate no bread and drank no water.
This story links to the beginning of Jesus ministry, when he was led by the Spirit into the desert to be tempted by the devil. We are told in Matthew 4 that after fasting for forty days and forty nights, he was hungry.