Sura Al-Baqara

2:51

وَإِذْ وَٰعَدْنَا مُوسَىٰٓ أَرْبَعِينَ لَيْلَةًۭ ثُمَّ ٱتَّخَذْتُمُ ٱلْعِجْلَ مِنۢ بَعْدِهِۦ وَأَنتُمْ ظَٰلِمُونَ

och hur Vi kallade Moses till Oss [på Sinai berg] under fyrtio nätter och hur ni i hans frånvaro tog er för att dyrka [den gyllene] kalven och så begick en svår synd.

Tafsir 2:51

Also, remember that the forty nights appointed to Moses were from the blessings of Allah, in which the revelation of the Torah, with its light and guidance, was completed. Yet you went and worshipped the calf during that period, which made you into wrongdoers.