It is narrated from Sayyiduna Rifa'ah bin Rafi' bin Malik al-Zuraqi (may Allah be pleased with them both) that the Prophet (peace and blessings be upon him) said to Sayyiduna Umar (may Allah be pleased with him): "Gather (your) people for me." So he gathered them, and they were at the door. Then he (peace and blessings be upon him) said: "Indeed, my friends among you are only those who are God-fearing. Beware lest people come (on the Day of Resurrection) with good deeds while you come carrying burdens of sins on your backs."
Imam Abu Bakr bin Abi Shaybah recorded this hadith with a sahih (authentic) chain.