Numan bin Bashir reported,

The Prophet ﷺ said, "Allah wrote a book two thousand years before He created the heavens and the earth, and from it He sent down two verses with which He concluded Surah al-Baqarah. They are not recited in any house for three nights without a devil drawing near to it."

Azami 1012

Hasan

عن النعمان بن بشير

عن النبي ﷺ قال: إن الله كتب كتابا قبل أن يخلق السماوات والأرض بألفي عام، وأنزل منه آيتين ختم بهما سورة البقرة، ولا يقرآن في دار ثلاث ليال فيقربها شيطان.

الأعظمي 1012حسن
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Faith
Chapter
Belief in the divine decree and predestination
Section
Writing the measures of creation before the creation of the heavens and the earth
Numbering
Jami al-Kamil 1012 (2nd edition)
Azami 1012