Sunan Ibn Majah, Book 36, Hadith 169 (Ibn Majah 4097)

It was narrated from 'Abdullah bin Busr that the Messenger of Allah (ﷺ) said:

"Between the fierce battle and the conquest of Al-Madinah will be six years, and the appearance of Dajjal will come in the seventh.'"