The Messenger of Allah ﷺ came in to see me while I was weeping.He asked, "What is making you cry?"I said, "Messenger of Allah, I remembered the Dajjal, and so I wept."The Messenger of Allah ﷺ said, "If the Dajjal appears while I am still alive, I will deal with him on your behalf. And if he appears after me, then your Lord is not one-eyed."This is part of a longer hadith.
دخل علي رسول الله ﷺ وأنا أبكي. فقال: ما يبكيك؟ قلت: يا رسول الله، ذكرت الدجال، فبكيت. فقال رسول الله ﷺ: إن يخرج الدجال وأنا حي كفيتكموه، وإن يخرج بعدي، فإن ربكم عز وجل ليس بأعور. في حديث طويل.
Imam Ahmad (24467) narrated it from Sulayman bin Dawud, who said, Harb bin Shaddad narrated to us, who said, Yahya bin Abu Kathir narrated to us, who said, Hadrami bin Lahiq narrated to me, that Zakwan Abu Salih informed him, from Ayesha, and she mentioned the same. Its isnad is hasan because of Hadrami bin Lahiq, for his hadith is hasan. Ibn Hibban (6822) graded it sahih, narrating it through his route, with the same wording. For more, see the chapter on belief in the descent of Isa .