Exodus 24:18

18Moses entered the cloud and went up on the mountain. And Moses awas on the mountain forty days and forty nights.

Exodus 34:28

28 bSo he was there with the Lord forty days and forty nights. He neither ate bread nor drank water. And he cwrote on the tablets the words of the covenant, the Ten Commandments.
Hebrew  the ten words


Numbers 14:33-34

33And your children eshall be shepherds in the wilderness fforty years and shall gsuffer for your faithlessness, until the last of your dead bodies lies in the wilderness. 34 hAccording to the number of the days in which you spied out the land, iforty days, a year for each day, you shall bear your iniquity forty years, and you shall know my displeasure.’
Copyright information for ESV