In one narration the wording is: "The angels will say: 'By Your might, we recorded only what he did.' The Lord will say: 'You have spoken the truth; his deed was for other than Me.'"
Imam al-Tabarani recorded it in al-Mu'jam al-Awsat with two chains; the narrators of one of them are the narrators of the Sahih.
Imam al-Bazzar also recorded it.
Hadith Referenceمجمع الزوائد ومنبع الفوائد / كتاب البعث / 18396