There are many narrations in Bukhari and Muslim about it, please read this narration

URDU TRANSLATION:

This narration is very clear which proves the Shia point of view that neither all companions of the holy Prophet were good or all of them bad, our Sunni fellows say that all companions of the Prophet were good and all will go to heaven. But Bukhari proves something different.