Abu Darda reported: The Prophet, peace and blessings be upon him, said, “Whoever memorizes ten verses from the beginning of Surat al-Kahf will be immune to the False Messiah.”
In another narration, the Prophet said, “From the last ten verses of Surat al-Kahf.”
Source: Ṣaḥīḥ Muslim 809
Grade: Sahih (authentic) according to Muslim
عَنْ أَبِي الدَّرْدَاءِ أَنَّ النَّبِيَّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ مَنْ حَفِظَ عَشْرَ آيَاتٍ مِنْ أَوَّلِ سُورَةِ الْكَهْف عُصِمَ مِنْ الدَّجَّالِ
وفي رواية أخرى قال مِنْ آخِرِ الْكَهْفِ
809 صحيح مسلم كتاب صلاة المسافرين وقصرها باب فضل سورة الكهف وآية الكرسي