Abdullah bin Umar reported,

Umar addressed us at al-Jabiyah and said, "People, I stand among you as the Messenger of Allah ﷺ stood among us, and he said, 'I urge you to honor my companions, then those who follow them, then those who follow them. After that, lying will spread until a man swears an oath without being asked to, and a witness gives testimony without being called upon. No man should be alone with a woman, for the third with them is Satan. Hold fast to the community and beware of division, for Satan is with the one alone and is farther from two. Whoever desires the heart of Paradise, let him cling to the community. Whoever is gladdened by his good deeds and grieved by his bad deeds, that is the believer.'"

Tirmidhi 2165

Sahih

حدثنا أحمد بن منيع حدثنا النضر بن إسمعيل أبو المغيرة عن محمد بن سوقة عن عبد الله بن دينار

عن ابن عمر قال

خطبنا عمر بالجابية فقال يا أيها الناس إني قمت فيكم كمقام رسول الله ﷺ فينا فقال أوصيكم بأصحابي ثم الذين يلونهم ثم الذين يلونهم ثم يفشو الكذب حتى يحلف الرجل ولا يستحلف ويشهد الشاهد ولا يستشهد ألا لا يخلون رجل بامرأة إلا كان ثالثهما الشيطان عليكم بالجماعة وإياكم والفرقة فإن الشيطان مع الواحد وهو من الاثنين أبعد من أراد بحبوحة الجنة فليلزم الجماعة من سرته حسنته وساءته سيئته فذلكم المؤمن

الترمذي 2165صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami Tirmidhi
Book
Tribulations
Chapter
Adhering to the congregation
Numbering
Darussalam 2165
Tirmidhi 2165