Assalamu alaikkum usthad Allah swt commanded pen to write until whatever will happen until the day of judgement on the preserved tablet.so does the pen And the preserved tablet also know whatever will happen until the day of judgement by the will of Allah?

Ustadh AbdulAziz al-Haqqan
How would that knowledge benefit you in your worship to Allah Subhanahu wa Ta'ala?