Abu Qatada reported,

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 who is the one from whom others find rest?"He replied, "The believing servant finds rest from the toils and afflictions of this world to the mercy of Allah, and from the wicked servant, people, lands, trees, and animals find rest."

Bukhari 6512

Sahih

حدثنا إسماعيل قال حدثني مالك عن محمد بن عمرو بن حلحلة عن معبد بن كعب بن مالك

عن أبي قتادة بن ربعي الأنصاري أنه كان يحدث

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

البخاري 6512صحيح
Contents
Reference
Commentary
Ayat
Collection
Sahih Bukhari
Book
Softening of hearts
Chapter
Agonies of death
Numbering
Darussalam 6512
Bukhari 6512