Jesus told the man enquiring about how he can get to heaven that he has to follow the commandments. Those same commandments that Moses brought down from the mountains. He himself followed those commandments so he too can get to heaven. All his predecessors had that same understanding and so did he. Even at the time he was on the cross he believed that. Then after his departure Paul who hated Jesus started preaching against the same commandments that Jesus so diligently followed. I think he did this to stray people away from what Jesus believed because of his hate for Jesus. He was smart enough to use Jesus' name so he can throw people off his scheme. Now Jesus doesn't really have followers who believe what he believed and what he struggled to emphasize. To correct Paul's mischief Muhammad came to remind people of what he, Jesus and all the other who came before them believed. That the only way to heaven is by following the commandments.
Now this only matters for those who believe in a heaven. Those like Hindus who don't believe in heaven will not be interested in how to get to heaven. For those who believe in heaven, Muhammad, Jesus as well as all those who came before them believed totally in following the commandments as the way to get to heaven.