It is narrated from Sayyiduna Hudhayfah (may Allah be pleased with him) that he said: "The Messenger of Allah (peace and blessings be upon him) passed by me and said: 'I am Muhammad, I am Ahmad, I am the one who comes last (following in the footsteps of the prophets), the Gatherer (of people), and the Prophet of repentance.'" Imam al-Tirmidhi recorded it in "al-Shama'il" through Hammad bin Salamah from Asim, and Imam Ahmad bin Hanbal also mentioned it in his Musnad. In another narration of Sayyiduna Hudhayfah (may Allah be pleased with him), he said: "Once I was walking along one of the roads of Madinah when suddenly the Messenger of Allah (peace and blessings be upon him) also came along, and I heard him (peace and blessings be upon him) say: 'I am Muhammad, I am Ahmad, the Prophet of mercy, the Prophet of repentance, the Gatherer (of people), the one who comes after all, and the Prophet of the great battles.'"
This hadith also has a supporting report (shahid) from the hadith of Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him), which Imam Ibn Hibban recorded in his "Sahih", while Imam al-Hakim Abu Abdullah al-Hafiz also recorded it from the narrations of Sayyiduna Abu Musa al-Ash'ari and Sayyiduna Jubayr bin Mut'im (may Allah be pleased with them both).