Exodus 34:28 NLT

28 Moses was up on the mountain with the LORD forty days and forty nights. In all that time he neither ate nor drank. At that time he wrote the terms of the covenant -- the Ten Commandments -- on the stone tablets.