أَخْبَرَنَا قُتَيْبَةُ، عَنْ مَالِكٍ، عَنْ مُحَمَّدِ بْنِ عَمْرِو بْنِ حَلْحَلَةَ، عَنْ مَعْبَدِ بْنِ كَعْبِ بْنِ مَالِكٍ، عَنْ أَبِي قَتَادَةَ بْنِ رِبْعِيٍّ، أَنَّهُ كَانَ يُحَدِّثُ أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم مُرَّ عَلَيْهِ بِجَنَازَةٍ فَقَالَ ‏"‏ مُسْتَرِيحٌ وَمُسْتَرَاحٌ مِنْهُ ‏"‏ ‏.‏ فَقَالُوا مَا الْمُسْتَرِيحُ وَمَا الْمُسْتَرَاحُ مِنْهُ قَالَ ‏"‏ الْعَبْدُ الْمُؤْمِنُ يَسْتَرِيحُ مِنْ نَصَبِ الدُّنْيَا وَأَذَاهَا وَالْعَبْدُ الْفَاجِرُ يَسْتَرِيحُ مِنْهُ الْعِبَادُ وَالْبِلاَدُ وَالشَّجَرُ وَالدَّوَابُّ ‏"‏ ‏.‏

It was narrated from Abu Qatadah bin Raib'i that he used to narrate: "A funeral passed by the Messenger of Allah and he said: 'He is relieved and others are relieved of him.' They said: 'What does relieved mean and what does relieved of him mean: He said: "The believing slave is relieved of the hardships and troubles of this world, and the people, the land, the trees and the animals are relieved of the immoral slave."' Translation Not Available

Book Ref: Sunan An Nisai Book 21 Hadith 1930
Web Ref:  Sunan An Nisai Vol 3 Book 21 Hadith 1932