It is narrated from Sayyiduna Ka'b bin Ujrah (may Allah be pleased with him) that the Prophet (peace and blessings be upon him) said: "O Ka'b bin Ujrah, people set out in the morning in two ways: one buys himself and sets himself free, and the other sells himself and destroys himself."
"O Ka'b bin Ujrah, prayer is a proof, fasting is a shield, and charity extinguishes the anger of the Lord just as water extinguishes fire."
"O Ka'b bin Ujrah, seek refuge from the rule of fools." I said: O Messenger of Allah, what is the rule of fools? He (peace and blessings be upon him) said: "Soon there will be rulers who, when they speak, lie, and who act and know (what they are doing). So whoever comes to them, affirms their lies and helps them in their oppression, he is not from me and I am not from him, and he will not come to the Pond. And whoever does not come to them, does not affirm their lies and does not help them in their oppression, he is from me and I am from him, and he will come to the Pond."
Hadith Referenceالمعجم الكبير للطبراني / باب الكاف / 16368