Sayyiduna Sa'id bin Zayd (may Allah be pleased with him) narrated that a man said to the Messenger of Allah (peace and blessings be upon him): "Give me advice." He (peace and blessings be upon him) said: "I advise you to feel shame before Allah, the Mighty and Majestic, just as you feel shame before a righteous man of your people."
Imam al-Daraqutni (may Allah have mercy on him) was asked about this hadith and he said: "It was narrated by Yazid bin Abi Habib (may Allah have mercy on him), and there is disagreement among (his students) in narrating it from him. Al-Layth bin Sa'd (may Allah have mercy on him) narrated it from Yazid, from Abu al-Khayr, from Sayyiduna Sa'id bin Zayd (may Allah be pleased with him) or Sayyiduna Sa'd bin Yazid (may Allah be pleased with him), from the Prophet (peace and blessings be upon him). Abd al-Hamid bin Ja'far (may Allah have mercy on him) differed from him and narrated it from Yazid bin Abi Habib (may Allah have mercy on him), from Abu al-Khayr (may Allah have mercy on him), from Sayyiduna Sa'id bin Zayd (may Allah be pleased with him), from a cousin of his (may Allah be pleased with him), who said: 'I said: O Messenger of Allah (peace and blessings be upon him), give me advice' (and the rest of the hadith)."
Imam al-Daraqutni (may Allah have mercy on him) said: "The version of Abd al-Hamid bin Ja'far (may Allah have mercy on him) is closer to being correct."
I (Imam Diya al-Din al-Maqdisi, may Allah have mercy on him) say: This is a Companion narrating from a Companion, which is sound, so this (disagreement) does not affect the narration. And Allah knows best.