Sayyiduna Thawban (may Allah be pleased with him) narrates this saying of the Prophet (peace and blessings be upon him): "Whoever introduces an innovation, or gives shelter to an innovator, or ascribes himself to someone other than his father, or to someone other than his freeing master, upon him is the curse of Allah Almighty, the angels and all the people; no obligatory or voluntary worship of his will be accepted. The Prophet (peace and blessings be upon him) said: What will become of you when you remain among people whose covenants and trusts have become mixed up and who have become worthless dregs? The Prophet (peace and blessings be upon him) said this while interlacing his fingers. The people said: O Messenger of Allah! What should we do? The Prophet (peace and blessings be upon him) said: Be patient, be patient; deal with people according to their manners, and differ from them (the people) in their deeds."
Al-Bazzar recorded it; its chain contains Yazid bin Rabi'ah, and he is matruk (abandoned). Ibn Adi said: I hope that there is no harm in him.
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الفتن - أعاذنا الله منها / 12221