Some people say that the attahiyat was a conversation held by Allah and The nabi Muhammad (peace be upon him0 along with the angels of the night of Miraj.