It is narrated from Sayyiduna Umar bin al-Khattab (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "Shall I not tell you how to recognise your best rulers and your worst? Your best rulers are those whom you love and who love you, for whom you pray for good and who pray for you; and your worst rulers are those whom you hate and who hate you, whom you curse and who curse you." Imam Abu Ya'la al-Mawsili recorded it with a chain that contains a narrator named Muhammad bin Abi Humayd, and he is da'if (weak).