Abdullah bin Umar reported,

Umar addressed us at al-Jabiyah and said, "People, I stand among you as the Messenger of Allah ﷺ once stood among us, when 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 will swear an oath without being asked to, and a witness will give testimony without being called upon. Let no man be alone with a woman, for Satan is the third one present with them. Hold fast to the community and beware of division, for Satan is with the one who is alone, but he is farther from two. Whoever desires the heart of Paradise must cling to the community. Whoever is gladdened by his good deeds and grieved by his bad deeds, that is the true believer.'"

Azami 191

Sahih

عن ابن عمر قال

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

الأعظمي 191صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Qualities of faith
Section
Sins are from the ways of the Jahiliyyah, and one who commits them does not become a disbeliever except through shirk
Numbering
Jami al-Kamil 191 (2nd edition)
Azami 191