The Messenger of Allah ﷺ said, "Indeed, Yajuj and Majuj," and he mentioned its meaning, except that he said, "When their term has come and Allah wills to send them forth against the people."
حدثنا حسن حدثنا شيبان عن قتادة عن أبي رافع
قال رسول الله ﷺ إن يأجوج ومأجوج فذكر معناه إلا أنه قال إذا بلغت مدتهم وأراد الله عز وجل أن يبعثهم على الناس