Abdullah bin Umar reported,

Umar bin Khattab delivered a sermon at al-Jabiyah and said, "The Messenger of Allah ﷺ once stood among us as I now stand among you, and he said, 'I urge you to treat my companions well, then those who come after them, then those who come after them. After that, falsehood will spread, until a man will rush to give testimony before he is even asked for it. Whoever among you desires the heart of Paradise, let him hold fast to the community, for Satan is with the one who is alone, and he is farther from two. Let none of you be alone with a woman, for Satan is the third one present. Whoever is gladdened by his good deeds and grieved by his bad deeds is a believer.'"

Azami 9817

Sahih

عن ابن عمر

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

الأعظمي 9817صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Virtues of the Companions and reports about them
Chapter
Virtue of companionship
Section
Passing of the Companions' generation a hundred years after the Prophet ﷺ
Numbering
Jami al-Kamil 9817 (2nd edition)
Azami 9817