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:53:2

Your companion ˹Muhammad˺ has not strayed, nor has he erred,  

your companion, Muhammad (s), may God bless him and grant him peace, has neither gone astray, from the path of guidance, nor has he erred, nor has he engaged in error (al-ghayy is ignorance that results from a false belief);
القرآن:٥٣:٢

مَا ضَلَّ صَاحِبُكُمْ وَمَا غَوَىٰ  

{ما ضل صاحبكم} محمد عليه الصلاة والسلام عن طريق الهداية {وما غوى} ما لابس الغي وهو جهل من اعتقاد فاسد.