Exod 24:18

18Moses entered the cloud, and went up on the mountain. Moses was on the mountain for forty days and forty nights.