Sayyiduna Ibn Abbas (may Allah be pleased with them both) said: I said: "O Messenger of Allah! When was your covenant (of prophethood) taken?" He (peace and blessings be upon him) said: "When Adam (peace be upon him) was between the soul and the body."
Hadith Referenceالمعجم الكبير للطبراني / باب العين / 12592