Dalil

Quran Al-Qalam 68:47

أَمۡ عِندَهُمُ ٱلۡغَيۡبُ فَهُمۡ يَكۡتُبُونَ

Translation

Or have they [knowledge of] the unseen, so they write [it] down?