'Uqbah bin 'Amir (May Allah be pleased with him) said:
One day the Messenger of Allah (ﷺ) went out and asked Allah's forgiveness for the martyrs of the battle of Uhud after eight years. It seemed that by so doing, he bid farewell to the living and the dead. He then came back, rose to the pulpit and said, "I shall be your precursor; I am a witness for you (before Allah), and I will be present before you at the River (Haud Al-Kauthar). By Allah I can see with my own eyes the Haud from this place. I am not afraid that you will associate anything with Allah in worship after (my demise), but I apprehend that you will vie with one another for the life of the world." The narrator said: It was the last time that I saw the Messenger of Allah (ﷺ).[Al-Bukhari and Muslim].There are some more narrations with very minor changes in its wording.
App reference: Book 19, Hadith 53
Arabic/English book reference: Book 19, Hadith 1860