The evidence for that is as follows:
It Is Not Permitted For Ijtihaad To Be Attributed To The Messenger Of Allah (saw)
1 – Ad-Daleel Al-‘Aqliy (Rational or intellectual evidence):
The concept of Ijtihaad is contradictory to the ‘Ismah (infallibility) of the Messenger (saw) because it is not permitted for error to occur in respect to the message (Ar-Risaalah) and conveyance (At-Tableegh). The Messenger of Allah (saw) is therefore infallible from an error in respect to the message and the conveyance and because we have been commanded to follow the Messenger (saw) in respect to that which he conveys to us from his Rabb. That is whilst Ijtihaad is open to error and it is not intellectually conceivable for Allah to command us to follow the error.
2 – Ad-Daleel Ash-Shar’iy:
Allah Ta’Aalaa has informed in the Qur’aan Al-Kareem that the Messenger (saw) only warns by the Wahi and only speaks or utters from the Wahi (divinely inspired revelation). Allah (swt) said:
Say: “I warn you only by the revelation” (Al-Anbiyaa’ 45).