Sayyiduna Abu Sa‘id Khudri (may Allah be pleased with him) narrates: He heard the Prophet (peace and blessings of Allah be upon him) saying: "Indeed, on the Day of Resurrection, Allah Almighty will take account from the servant, until He will say to him: When you saw a forbidden thing, what prevented you from rejecting it? So when Allah Almighty will teach the servant his argument, he will say: O Lord, I believed in You and separated myself from the people (the narrator is in doubt, perhaps these are the words:) I separated myself from the people and I believed in You."
Hadith Referenceصحیح ابن حبان / كتاب إخباره ﷺ عن مناقب الصحابة رجالهم ونسائهم بذكر أسمائهم رضوان الله عليهم أجمعين / 7368
Hadith Gradingفضيلة الشيخ الإمام محمد ناصر الدين الألبانيحسن - «الصحيحة» (929).فضيلة الشيخ العلّامة شُعيب الأرناؤوطإسناده قوي