Sahih Muslim, Book 6, Hadith 311 (Muslim 1866)

Abu Darda' reported Allah's Apostle (ﷺ) as saying:

If anyone learns by heart the first ten verses of the Surah al-Kahf, he will be protected from the Dajjal.