Sayyiduna Anas (may Allah be pleased with him) states: The Prophet (peace and blessings be upon him) was admonishing his Companions when three men passed by. One of them came and sat with the Prophet (peace and blessings be upon him), the second went on a little and then sat down, and the third kept on walking. The Prophet (peace and blessings be upon him) said: "Shall I not tell you about these three men? As for the one who came and sat with us, he repented and Allah Almighty accepted his repentance. As for the one who went on a little and then sat down, he felt shy, and Allah Almighty also felt shy of him. As for the one who kept on walking, he showed indifference, and Allah Almighty also became indifferent to him."
Al-Bazzar recorded it, and its narrators are thiqat (trustworthy).
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب الزهد / 17712