Sahih Muslim Book 20, Hadith Number 4556.
Chapter : Instruction to stick to the main body of the Muslims in the time of trials and warning against those inviting people to disbelief.
The same tradition has been narrated by the same authority through another chain of transmitters with a slight difference in wording.