Al-Qamar • EN-TAFSIR-IBN-ABBAS
﴿ وَكُلُّ شَىْءٍۢ فَعَلُوهُ فِى ٱلزُّبُرِ ﴾
“[They were truly guilty] because all [the evil] that they ever did had been [revealed to them as such] in the [ancient] books of [divine] wisdom;”
(And every thing they did) of transgression in their state of idolatry and opposition of the prophets (is in the Scriptures) written down; and it is said this means: it is written in the Guarded Tablet. This also was revealed about those who disputed about fate.