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:73:15

Indeed, We have sent to you a Messenger as a witness upon you just as We sent to Pharaoh a messenger.  

We have indeed sent to you, O people of Mecca, a Messenger, namely, Muhammad (s), to be a witness against you, on the Day of Resurrection to any disobedience that you engage in, just as We sent to Pharaoh a messenger, namely, Moses, peace be upon him.
القرآن:٧٣:١٥

إِنَّا أَرْسَلْنَا إِلَيْكُمْ رَسُولًا شَاهِدًا عَلَيْكُمْ كَمَا أَرْسَلْنَا إِلَىٰ فِرْعَوْنَ رَسُولًا  

{إنا أرسلنا إليكم} يا أهل مكة {رسولا} هو محمد ﷺ {شاهدا عليكم} يوم القيامة بما يصدر منكم من العصيان {كما أرسلنا إلى فرعون رسولا} هو موسى عليه الصلاة والسلام.