"I AM the way, the truth, and the life. No one comes to the Father except through me."
Probably we can credit the Holy Spirit with those words. Especially since the Holy Spirit is the one who convicts of sin and draws people to God. Also, Jesus did not speak on his own, only what he was told by the Father after he received the Holy Spirit.