"They said: 'O Messenger of Allah ﷺ! When was the Prophethood established for you?' He said: 'While Adam was between (being) soul and body.'" (Using translation from Tirmidhī 3609)
قُلْتُ يَا رَسُولَ اللهِ مَتَى كُتِبْتَ نَبِيًّا؟ قَالَ وآدَمُ بَيْنَ الرُّوحِ وَالْجَسَدِ