Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
quran:28:44

And you, ˹O Muhammad˺, were not on the western side ˹of the mount˺ when We revealed to Moses the command, and you were not among the witnesses ˹to that˺.  

And you were not, O Muhammad (s), on the western side, of the mountain, the valley, or the spot, ˹to the west˺ of Moses at the time of the communion, when We decreed, revealed, to Moses the commandment, to deliver the Message to Pharaoh and his people, nor were you among the witnesses, to this, to know it and inform of it;
القرآن:٢٨:٤٤

وَمَا كُنْتَ بِجَانِبِ الْغَرْبِيِّ إِذْ قَضَيْنَا إِلَىٰ مُوسَى الْأَمْرَ وَمَا كُنْتَ مِنَ الشَّاهِدِينَ  

{وما كنت} يا محمد {بجانب} الجبل أو الوادي أو المكان {الغربي} من موسى حين المناجاة {إذ قضينا} أوحينا {إلى موسى الأمر} بالرسالة إلى فرعون وقومه {وما كنت من الشاهدين} لذلك فتعلمه فتخبر به.