It is narrated from Sayyiduna Ali (may Allah be pleased with him) that he said: "It was said to the Messenger of Allah (peace and blessings be upon him): 'O Messenger of Allah! Whom shall we appoint as our leader after you?' He (peace and blessings be upon him) said: 'If you appoint Sayyiduna Abu Bakr (may Allah be pleased with him) as leader, you will find him trustworthy, detached from this world and desirous of the Hereafter. If you appoint Sayyiduna Umar (may Allah be pleased with him) as leader, you will find him strong and trustworthy; he will not fear the blame of any blamer in the matter of Allah. And if you appoint Ali as leader, and I do not think you will do so, you will find him a guide who is rightly guided; he will lead you on the straight path.'"
Imam al-Daraqutni (may Allah have mercy on him) was asked about this narration, and he mentioned the disagreement in it and said: "Isra'il narrated it from Abu Ishaq (may Allah have mercy on him), from Zayd bin Yuthay' (may Allah have mercy on him), as mursal, without mentioning Sayyiduna Ali (may Allah be pleased with him) or Sayyiduna Hudhayfah (may Allah be pleased with him); and this mursal narration is closer to what is correct." He had also mentioned it through Sulayman (may Allah have mercy on him) and from Sayyiduna Hudhayfah (may Allah be pleased with him).
Related hadith on this topic