Sunnah.com : Book 9, Hadith 31
Narration text is preserved in its supplied Arabic and English. Translated interfaces and reading guides do not add narration translations in other languages.
وعن أبي الدرداء رضي الله عنه أن رسول الله صلى الله عليه وسلم قال: من حفظ عشر آيات من أول سورة الكهف، عصم من الدجال" وفي رواية: "من آخر سورة الكهف" ((رواهما مسلم))."
Abu d-Darda' (May Allah be pleased with him) reported:
The Messenger of Allah (ﷺ) said: "Whoever commits to memory the first ten Ayat of the Surat Al-Kahf, will be protected from (the trial of) Ad-Dajjal (Antichrist)." [Muslim]. In another narration, the Messenger of Allah (ﷺ) said: "(Whoever commits to memory) the last ten Ayat of Surat Al-Kahf, he will be protected from (the trial of) Ad-Dajjal (Antichrist)."
Full reference and source
Sunnah.com : Book 9, Hadith 31 Arabic/English book : Book 9, Hadith 1021
View source on Sunnah.com (opens in a new tab)