Exodus 24:18

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

Exodus 24:18 In-Context

16 The glory of the Lord settled on Mount Sinai, and the cloud covered it for six days; on the seventh day he called to Moses out of the cloud.
17 Now the appearance of the glory of the Lord was like a devouring fire on the top of the mountain in the sight of the people of Israel.
18 Moses entered the cloud, and went up on the mountain. Moses was on the mountain for forty days and forty nights.
New Revised Standard Version Bible, copyright 1989, Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved.