A funeral procession passed by the Messenger of Allah ﷺ, and the people praised the deceased highly. The Messenger of Allah ﷺ said, "It has been confirmed." Then he said, "You are Allah's witnesses on earth."
حدثنا أحمد بن منيع حدثنا يزيد بن هارون أخبرنا حميد
مر على رسول الله ﷺ بجنازة فأثنوا عليها خيرا فقال رسول الله ﷺ وجبت ثم قال أنتم شهداء الله في الأرض
[Sahih]. Ahmad narrated it, 3/179, from the hadith of Humayd Tawil with the same chain, and Bukhari narrated it, no. 1367, and Muslim, no. 949, from the hadith of Anas with the same chain.On this subject there are also narrations from Umar [to come at 1059], Kaab bin Ujra [Tabarani in Al-Kabir, 19/156, no. 344], and Abu Hurairah [Abu Dawud, no. 3233].