One needs to look at this in the context of the Divine reality of Jesus and Muhammad. In that Divine reality, they shared a oneness which is eternal and pre-existent. While Jesus said He ascended “from” heaven and was the “I am”, Muhammad said “‘I was a prophet when Adam was between water and clay’- before he came into existence” (Ibn Arabi, Futuhat 1243)
.
This is an interesting link -
muslim.org/sa-case/evidence/s07.htm
It ends with this;
Statements of Hazrat Mirza Ghulam Ahmad about the Sufi Saints
“Of all the leaders of Tasawwuf that there have been till the present day, not even one has disagreed with the point that in this religion the path to become the likes of prophets is open, as the Holy Prophet Muhammad has given the glad tidings for spiritual and godly learned persons that ‘the Ulama of my nation are like the Israelite Prophets’. The words of Abu Yazid Bustami given below, which are recorded in Tazkirat al-Auliya by Farid-ud-Din Attar, and are also found in other reliable works, are on this basis, as he says:** ‘I am Adam, I am Seth, I am Noah, I am Abraham, I am Moses, I am Jesus, I am Muhammad, **peace be upon him and upon all these brothers of his’.” (Izala Auham, pp. 258 – 259)
“We can prove to every seeker-after-truth, conclusively and definitely, that from the time of the Holy Prophet Muhammad till the present day there have been, in every century, godly persons through whom God has shown heavenly signs to other communities to guide them [towards Islam]. There have been in Islam persons such as Sayyid Abdul Qadir Jilani, Abul Hasan Khartani, Abu Yazid Bustami, Junaid of Baghdad, Muhiyud-Din Ibn Arabi, Zul-Noon of Egypt, Mu‘in-ud-Din Chishti, Qutub-ud-Din Bukhtiar, Farid-ud-Din of Pak Patan, Nizam-ud-Din of Delhi, Shah Wali-ullah of Delhi, and Shaikh Ahmad of Sirhind. The number of such persons runs into thousands, and the miracles of so many people are recorded in scholarly and learned works that even a prejudiced opponent, despite his great bias, has to concede finally that these persons showed miracles and extraordinary signs.” (Kitab al-Barriyya, p. 67)