In one narration the words are: He, that is, Sayyiduna Adam (peace be upon him), said: Am I earlier, or is the Remembrance (that is, the Preserved Tablet) earlier?
Abu Ya'la recorded it, Ahmad recorded something similar, and al-Tabarani recorded it; the narrators of these reports are the narrators of the Sahih.
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب القدر / 11803