I suspect that it is simply conjecture that Jesus knew the future. The reasoning is God knows everything, Jesus is God, therefore Jesus knows everything. He always knew everything, even in the manger, he knew it all. (Yeah, sure).
I disagree that Jesus needed to be beaten or killed to be successful. Buddha lived to be eighty or so and apparently died of accidental food poisoning. Buddha knew that he would eventually die, not because he could tell the future, but because he knew he was mortal. I think one of his disciples. Maha Mogallana, could see the future and had other supernatural powers. Or so the story goes.
Buddha has cooler disciples:Ananda, Sariputra, Mogallana.