Sahih Muslim Book 20, Hadith Number 4558.
Chapter : Instruction to stick to the main body of the Muslims in the time of trials and warning against those inviting people to disbelief.
This hadith has been narrated on the authority of Jarir with the same chain of transmitters with a slight variation in wording.