Abu Qatada reported,

He used to relate that a funeral procession passed by the Messenger of Allah ﷺ, and he said, "One who finds rest, and one from whom others find rest."They asked, "Messenger of Allah, who is the one who finds rest and the one from whom others find rest?"He replied, "The believing servant finds rest from the toils and troubles of this world into the mercy of Allah, and as for the wicked servant, the people, the land, the trees, and the animals all find rest from him."

Azami 3651

Sahih

عن أبي قتادة بن ربعي

أنه كان يحدث أن رسول الله ﷺ مر عليه بجنازة فقال: مستريح ومستراح منه قالوا: يا رسول الله ما المستريح والمستراح منه؟ قال: العبد المؤمن يستريح من نصب الدنيا وأذاها إلى رحمة الله والعبد الفاجر يستريح منه العباد والبلاد والشجر والدواب.

الأعظمي 3651صحيح
Contents
Reference
Commentary
Ayat
Collection
Jami al-Kamil
Book
Funerals
Chapter
Deceased, carrying the funeral bier, and standing for it
Section
One who is at rest and the one from whom others are at rest
Numbering
Jami al-Kamil 3651 (2nd edition)
Azami 3651