Caution: Translations of Quran and Ḥadīth may lead to possible misapplications and misinterpretations. This site is intended for students of sacred knowledge that are proficient in comprehending classical Arabic and have a strong foundation in Islamic sciences. Also note that religious injunctions rely on several aspects beyond what one may glean through reading individual aḥādīth.
hakim:7653ʿAlī b. ʿAbdullāh al-Ḥakīmī > al-ʿAbbās b. Muḥammad al-Dūrī > Khalaf b. Mūsá b. Khalaf from my father > Qatādah > Anas b. Mālik

[Machine] That the Messenger of Allah ﷺ was advising his companions, and when three people passed by, one of them came and sat next to the Prophet ﷺ , while the second person sat a little while later. As for the third person, he passed by with his face turned away. The Prophet ﷺ said, "As for the one who came and sat with us, he has repented and Allah has accepted his repentance. As for the one who passed by and then sat, he felt shy and Allah felt shy of him. As for the one who passed by with his face turned away, he was self-sufficient and Allah is self-sufficient from him."  

الحاكم:٧٦٥٣أَخْبَرَنِي عَلِيُّ بْنُ عَبْدِ اللَّهِ الْحَكِيمِيُّ بِبَغْدَادَ ثَنَا الْعَبَّاسُ بْنُ مُحَمَّدٍ الدُّورِيُّ ثَنَا خَلَفُ بْنُ مُوسَى بْنِ خَلَفٍ ثَنَا أَبِي عَنْ قَتَادَةَ عَنْ أَنَسِ بْنِ مَالِكٍ

أَنَّ رَسُولَ اللَّهِ ﷺ يَعِظُ أَصْحَابَهُ فَإِذَا ثَلَاثَةُ نَفَرٍ يَمُرُّونَ فَجَاءَ أَحَدُهُمْ فَجَلَسَ إِلَى النَّبِيِّ ﷺ وَمَضَى الثَّانِي قَلِيلًا ثُمَّ جَلَسَ وَأَمَّا الثَّالِثُ فَمَضَى عَلَى وَجْهِهِ فَقَالَ النَّبِيُّ ﷺ «أَمَّا هَذَا الَّذِي جَاءَ فَجَلَسَ إِلَيْنَا فَإِنَّهُ تَابَ فَتَابَ اللَّهُ عَلَيْهِ وَأَمَّا الَّذِي مَضَى قَلِيلًا ثُمَّ جَلَسَ فَإِنَّهُ اسْتَحْيَى فَاسْتَحْيَى اللَّهُ مِنْهُ وَأَمَّا الَّذِي مَضَى عَلَى وَجْهِهِ فَإِنَّهُ اسْتَغْنَى فَاسْتَغْنَى اللَّهُ عَنْهُ»  

هَذَا حَدِيثٌ صَحِيحُ الْإِسْنَادِ وَلَمْ يُخَرِّجَاهُ صحيح

See similar narrations below:

Collected by Suyūṭī
suyuti:4373a
Request/Fix translation

  

السيوطي:٤٣٧٣a

"أما هذا الذِى جاءَ فجلَسَ إلينا، فإنّه تابَ، فتاب الله عليه، وأما الَّذي مضى قليلًا فإِنه اسْتحيا، فاستحيا اللهُ منه- وأمَّا الذَى مضى على وجههِ فإِنه استغنى (فاستغنى) الله عنه".  

[ك] الحاكم في المستدرك عن أنس