1860 — ʿUqbah ibn ʿĀmir (may Allah be pleased with him) reported: The Messenger of Allah ﷺ went out to the martyrs of Uhud and prayed over them eight years later, as though bidding farewell to both the living and the dead. He then ascended the pulpit and said, “I am going before you as your forerunner, and I am a witness over you. Your appointment is at the Basin, and I can see it from where I am standing now. I do not fear that you will ever fall into polytheism, but I fear for you the life of this world, that you will compete for it.” He added, “That was the last time I looked upon the Messenger of Allah ﷺ.” Agreed upon.
In another wording: “Rather, I fear for you the world—that you will vie for it, then fight each other and be destroyed, just as those before you were destroyed.” ʿUqbah said, “That was the last time I saw the Messenger of Allah ﷺ on the pulpit.”
In yet another narration he said: “I am your forerunner, and I am a witness over you. By Allah, I can see my Basin right now. I have been given the keys to the treasuries of the earth—or the keys of the earth itself—and, by Allah, I do not fear that you will associate partners with Allah after I am gone, but I fear that you will compete with one another for it.”
The phrase “he prayed over the martyrs of Uhud” here means that he supplicated for them; it was not the formal funeral prayer offered before burial.