ذِكْرُ أَمَانِ اللَّهِ جَلَّ وَعَلَا مِنَ النَّارِ مَنْ أَوَى إِلَى مَجْلِسِ عِلْمٍ وَنِيَّتُهُ فِيهِ صَحِيحَةٌ
Abu Waqid al-Laith reported that Messenger of Allah ﷺ was sitting in the mosque along wish tome people when there came to him three persons; two of them stepped forward to the direction of Messenger of Allah ﷺ, and one of them went away. The two stood by the side of Messenger of Allah ﷺ, and one of them found a space in his circle and he sat in that; and the other one sat behind him and the third one went away. When Messenger of Allah ﷺ had finished his work, he said. Should I not inform you about these three persons? One of them sought refuge with Allah and Allah gave him refuge and the second one felt shy and Allah showed kindness to has shyness (and so he was accommodated in that meeting), and the last one reverted and Allah turned away His attention from him. (Using translation from Muslim 2176a)
أَنَّ رَسُولَ اللَّهِ ﷺ بَيْنَمَا هُوَ جَالِسٌ فِي الْمَسْجِدِ وَالنَّاسُ مَعَهُ إِذْ أَقْبَلَ ثَلَاثَةُ نَفَرٍ فَأَقْبَلَ اثْنَانِ إِلَى رَسُولِ اللَّهِ ﷺ وَذَهَبَ وَاحِدٌ فَلَمَّا وَقَفَا عَلَى رَسُولِ اللَّهِ ﷺ سَلَّمَا فَأَمَّا أَحَدُهُمَا فَرَأَى فُرْجَةً فِي الْحَلْقَةِ فَجَلَسَ فِيهَا وَأَمَّا الْآخَرُ فَجَلَسَ خَلْفَهُمْ وَأَمَّا الثَّالِثُ فَأَدْبَرَ ذَاهِبًا فَلَمَّا فَرَغَ رَسُولُ اللَّهِ ﷺ قَالَ «أَلَا أُخْبِرُكُمْ عَنِ النَّفَرِ الثَّلَاثَةِ أَمَّا أَحَدُهُمْ فَأَوَى إِلَى اللَّهِ فَآوَاهُ اللَّهُ وَأَمَّا الْآخَرُ فَاسْتَحْيَى فَاسْتَحْيَى اللَّهُ مِنْهُ وَأَمَّا الْآخَرُ فَأَعْرَضَ فَأَعْرَضَ اللَّهُ عَنْهُ»