This question already has an answer here:
I read this on a forum:
Sahadeva could predict the future, but he was also cursed to die if he revealed it to anyone. He didn't reveal the outcome of the war to Krishna.
Also, this question says that Sahadeva could do this because he 'ate part of Pandu's brain'!
I would like to know the original story from the Mahabharata.