Sayyiduna Abu Hurairah (may Allah be pleased with him) narrates that the Prophet Muhammad (peace and blessings be upon him) said: "Soon after me there will be caliphs who will act according to what they know and will do what they have been commanded, and after them there will be other caliphs who will act without knowledge and will do things they were not commanded to do. Whoever rejects them will be free of blame, and whoever keeps himself away from them will remain safe, but the one who is pleased with them and follows them, his matter is different."