Ref. No. 41/1013
In the name of Allah the most gracious the most merciful
The answer to your question is as follows:
The hadith mentioned ‘fourteen thousand years’ instead of ‘forty thousand years’. The wording “fourteen thousand years” is mentioned in the book of Hazrat Thanvi. This hadith is reported in several books with the reference of Ahkam ibne Qattan, but we found no remark on the status of the above mentioned hadith. ۔ کنت نورا بین یدی ربی عزوجل قبل ان یخلق باربعۃ عشر الف عام نقلہ العجلونی فی الخفاء عن العلقمی عن علی بن الحسین عن ابیہ عن جدہ مرفوعا فی ھذا الاسناد علی وابنہ صحابیان وسبطہ علی بن الحسین الملقب بزین العابدین تابعی واوردہ القسطلانی فی باب اول المخلوقات عن مرزوق عن علی بن الحسین عن ابیہ عن جدہ۔ (فرحۃ اللبیب بتخریج احادیث نشرالطیب ص 69)۔
And Allah knows best
Darul Ifta
Darul Uloom Waqf Deoband