Jami` at-Tirmidhi, Book 10, Hadith 94 (Tirmidhi 1060)
Anas bin Malik narrated:
"A funeral (procession) passed by the Messenger of Allah and they were praising him with good statements. So the Messenger of Allah said: 'Granted.' Then he said: 'You are Allah's witnesses on the earth.'"