Abu Saeed Khudri reported,

The Messenger of Allah ﷺ once narrated to us a lengthy account about the Dajjal. Among the things he told us, he said, "He will come, but he will be forbidden from entering the mountain passes of Madinah. He will halt at one of the salt flats on the outskirts of Madinah. On that day, a man who is the best of people, or among the best of people, will go out to meet him.The man will say to him, 'I bear witness that you are the Dajjal whom the Messenger of Allah ﷺ described to us.'The Dajjal will say, 'What do you think? If I kill this man and then bring him back to life, will you have any doubt about the matter?'They will say, 'No.'So he will kill him and then bring him back to life. When he revives him, the man will say, 'By Allah, I have never had clearer insight about you than I do now.'The Dajjal will then want to kill him, but he will not be given power over him."Abu Ishaq said, It is said that this man is al-Khidr عليه السلام.

Muslim 7375

Sahih

حدثني عمرو الناقد والحسن الحلواني وعبد بن حميد وألفاظهم متقاربة والسياق لعبد قال حدثني و قال الآخران حدثنا يعقوب وهو ابن إبراهيم بن سعد حدثنا أبي عن صالح عن ابن شهاب أخبرني عبيد الله بن عبد الله بن عتبة أن

أبا سعيد الخدري قال

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

مسلم 7375صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Muslim
Book
Tribulations and signs of the Hour
Chapter
Description of Dajjal, Madinah being forbidden to him, his killing of a believer, and his reviving him
Numbering
Darussalam 7375
Muslim 7375