وَإِنَّكَ لَتَهْدِي إِلَىٰ صِرَاطٍ مُسْتَقِيمٍ
Indeed, you guide toward a straight path. (Qur'an 42:52)
Guidance is properly attributed to the Messenger ﷺ when it means teaching, inviting, pointing out, and explaining the true path. Such attribution concerns a means or intermediary; it does not attribute independent creation of inward guidance to the Messenger.
A teacher may offer an accurate argument and explain it carefully. The teacher provides a means, while the actual occurrence of heartfelt acceptance belongs to Allah's creation. This makes the distinction between guidance through explanation and guidance through effective enabling clear.