عَنْ حَرْمَلَةَ الْعَنْبَرِيِّ رَضِيَ اللَّهُ عَنْهُ قَالَ أَتَيْتُ رَسُولَ اللَّهِ صَلَّى اللَّهُ عَلَيْهِ وَآلِهِ وَسَلَّمَ فَقُلْتُ يَا رَسُولَ اللَّهِ أَوْصِنِي قَالَ اتَّقِ اللَّهَ وَإِذَا كُنْتَ فِي مَجْلِسٍ فَقُمْتَ مِنْهُ فَسَمِعْتَهُمْ يَقُولُونَ مَا يُعْجِبُكَ فَأْتِهِ وَإِذَا سَمِعْتَهُمْ يَقُولُونَ مَا تَكْرَهُ فَاتْرُكْهُ
It is narrated from Sayyiduna Harmalah Anbari (may Allah be pleased with him), he says: I came to the Messenger of Allah (peace and blessings be upon him) and said: O Messenger of Allah! Advise me. The Messenger of Allah (peace and blessings be upon him) said: Fear Allah, and when you are sitting in a gathering and are about to leave it, but if you hear them saying things that please you, then remain seated with them, and when you hear them saying things that you dislike, then leave that gathering.