Sahih al-Bukhari 474
Abū Wāqid al-Laithī (r.a) narrated that once, the Messenger of Allāh (saw) was in the mosque when three people came in. Two of them approached the Messenger of Allāh (saw) and the third departed. As for one, he noticed an opening [in the circle] and sat down, and as for the second, he sat behind them. When the Messenger of Allāh (saw) finished speaking, he said: ‘Shall I not tell you about these three people? The first sought refuge with Allāh, and Allāh gave him shelter. The second felt shy, and Allāh in turn, was shy of him [i.e. he recognised his shyness and had mercy on him]. The third turned away, so Allāh too turned away from him.’
Translation: Ahmadiyya Muslim Jamaat
Book 84: The religious gathering in circles and sitting in the mosque