It is narrated from Sayyiduna Jabir bin Abdullah (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said to Sayyiduna Ka'b bin Ujrah (may Allah be pleased with him): "O Ka'b bin Ujrah, may Allah Almighty keep you in His protection from the rule of the foolish." He asked: What is meant by the rule of the foolish? He (peace and blessings be upon him) said: "After me there will be rulers who will neither follow my guidance nor adopt the way of my Sunnah. So whoever affirms them in their lies and helps them in their oppression, such people have no connection with me, nor do I have any connection with them, and they will not come to my Pond (Hawd). And whoever does not affirm their lies, nor assist them in their oppression, they are from me and I am from them, and they will soon come to my Pond. O Ka'b bin Ujrah, fasting is a shield, and charity wipes out sin (as in one narration: 'just as water extinguishes fire'), and prayer is a means of nearness to Allah - or he said: a proof. O Ka'b bin Ujrah, flesh that has grown from unlawful wealth will never enter Paradise; the Fire is more fitting for it. O Ka'b bin Ujrah, people go out in the morning in two states: one who trades his soul and frees it (through obedience to Allah), and the other who trades his soul and casts it into ruin (through disobedience)." Imam Ahmad bin Hanbal, Abd bin Humayd, al-Harith bin Abi Usamah, Abu Ya'la al-Mawsili and Ibn Hibban in his Sahih have narrated this hadith with various chains, in which there are slight variations of wording and mention of supporting narrations.
It is narrated from Abd al-Rahman bin Sabit, then he mentioned it (the hadith). Imam al-Bazzar has also narrated it just as Imam Ahmad bin Hanbal and Imam Abd bin Humayd narrated it, and all the narrators of their chains are narrators of the Sahih (al-Bukhari and Muslim). This narration also has a supporting narration (shahid) from the hadith of Sayyiduna Ka'b bin Ujrah (may Allah be pleased with him), which Imam al-Tirmidhi and Imam al-Nasa'i have narrated.