A funeral procession passed by the Prophet ﷺ, 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 believer finds rest from the toil and harm of this world into the mercy of Allah the Exalted, while the wicked person, from him the servants of Allah, the lands, the trees, and the animals find rest."
حدثنا يحيى بن سعيد حدثنا عبد الله بن سعيد يعني ابن أبي هند حدثني محمد بن عمرو بن حلحلة عن ابن لكعب بن مالك
مر على النبي ﷺ بجنازة قال مستريح ومستراح منه قالوا يا رسول الله ما المستريح والمستراح منه قال المؤمن استراح من نصب الدنيا وأذاها إلى رحمة الله تعالى والفاجر استراح منه العباد والبلاد والشجر والدواب
Its isnad is sahih. Ibn Kaab is Mabad, as Bukhari clarified. The hadith was narrated by Bukhari 11/362 no. 6512, Fath al-Bari, in the Book of Raqaiq, chapter on the agonies of death, and by Muslim 2/656 no. 950, in the Book of Funerals, chapter on what has been said about the one who finds rest and the one from whom rest is found. And by Nasai 4/48 no. 1930, similarly, and by Malik 1/241 no. 54, also in the Book of Funerals.