Sunan Ibn Majah, Book 37, Hadith 4300 (In-Book)

It was narrated that Anas said: “The Messenger of Allah passed by a dome-shaped structure at the door of a man among the Ansar and said: ‘What is this? ‘They said: ‘A dome that was built by so-and-so.’ The Messenger of Allah said: ‘All wealth that is like this (extravagant) will bring evil consequences to its owner on the Day of Resurrection.’ News of that reached the Ansari, so he demolished it. Then the Prophet passed by (that place) later on and did not see it. He asked about it and was told that its owner had demolished it because of what he had heard from him. He said: ‘May Allah have mercy on him, may Allah have mercy on him.’”

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

sunnah.com