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.
suyuti:254-2bḌirghāmah b. ʿUlaybah b. Ḥarmalah Ḥaddathniá Abiá from his father
Request/Fix translation

  

السيوطي:٢٥٤-٢b

"عَنْ ضِرْغَامَةَ بْنِ عُلَيْبَةَ بْنِ حَرْمَلَةَ: حَدَّثنِى أَبِى عَنْ أَبِيهِ قَالَ: أَتَيْتُ النَّبِىَّ ﷺ فِى رَكْبٍ مِنَ الحَىِّ، فَصَلَّى بِنَا صَلَاةَ الصُّبْحِ، فَجَعَلْتُ أَنْظُرُ إِلَى الَّذِى تَجَنَّبَنِى (*)

فَمَا أَكَادُ أَعْرِفُهُ مِنَ الْغَلَسِ، فَلَمَّا أَرَدْتُ الرُجُوعَ قُلْتُ: أَوْصِنِى يَا رَسُولَ الله، قَالَ: اتَّقِ الله، وَإِذَا كُنْتَ فِى مَجْلِسٍ فَقُمْتَ عَنْهُ فَسَمِعْتَهُمْ يَقُولُونَ مَا يُعْجِبُكَ فَأتِهِ، وَإِذَا سَمِعْتَهُمْ يَقُولُونَ مَا تَكْرَهُ فَلَا تَأتِهِ".  

[ط] الطيالسي وأبو نعيم

See similar narrations below:

Collected by Ṭabarānī

حَرْمَلَةُ أَبُو عُلَيْبَةَ الْعَنْبَرِيُّ

tabarani:3476Muʿādh b. al-Muthanná > Abū And ʿAmmī ʿUbaydullāh b. Muʿādh from my father > Qurrah b. Khālid > Ḍirghāmah b. ʿUlaybah b. Ḥarmalah from my father from his father

[Machine] "I traveled with the delegation of the neighborhood to the Messenger of Allah ﷺ . He led us in the morning prayer. When he finished, I turned to look at the face of the one next to me, but I could hardly recognize him due to the darkness. So I said, 'O Messenger of Allah, advise me.' He said, 'Fear Allah, even if you are in a group of people who say things to please you. And if you hear them saying things that you dislike, leave them be.'"  

الطبراني:٣٤٧٦حَدَّثَنَا مُعَاذُ بْنُ الْمُثَنَّى ثنا أَبِي وَعَمِّي عُبَيْدُ اللهِ بْنُ مُعَاذٍ قَالَا ثنا أَبِي ثنا قُرَّةُ بْنُ خَالِدٍ ثنا ضِرْغَامَةُ بْنُ عُلَيْبَةَ بْنِ حَرْمَلَةَ حَدَّثَنِي أَبِي عَنْ أَبِيهِ قَالَ

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