The Messenger of Allah ﷺ went out and noticed a tall, prominent dome. He asked, "What is this?"His companions told him, "It belongs to so-and-so, a man from the Ansar."He said nothing but kept it in his heart. When the owner of the dome later came to greet the Messenger of Allah ﷺ among the people, the Prophet turned away from him. He did this several times until the man recognized the displeasure and the turning away directed at him. He complained about it to his companions, saying, "By Allah, I find the Messenger of Allah ﷺ behaving strangely toward me."They said, "He went out and saw your dome."So the man returned to his dome and tore it down, leveling it to the ground. One day the Messenger of Allah ﷺ went out and did not see it. He asked, "What happened to the dome?"They said, "Its owner complained to us about your turning away from him, so we told him, and he demolished it."He said, "Indeed, every building is a burden upon its owner, except what cannot be avoided, except what cannot be avoided," meaning what is absolutely necessary.
حدثنا أحمد بن يونس حدثنا زهير حدثنا عثمان بن حكيم قال أخبرني إبراهيم بن محمد بن حاطب القرشي عن أبي طلحة الأسدي
أن رسول الله ﷺ خرج فرأى قبة مشرفة فقال ما هذه قال له أصحابه هذه لفلان رجل من الأنصار قال فسكت وحملها في نفسه حتى إذا جاء صاحبها رسول الله ﷺ يسلم عليه في الناس أعرض عنه صنع ذلك مرارا حتى عرف الرجل الغضب فيه والإعراض عنه فشكا ذلك إلى أصحابه فقال والله إني لأنكر رسول الله ﷺ قالوا خرج فرأى قبتك قال فرجع الرجل إلى قبته فهدمها حتى سواها بالأرض فخرج رسول الله ﷺ ذات يوم فلم يرها قال ما فعلت القبة قالوا شكا إلينا صاحبها إعراضك عنه فأخبرناه فهدمها فقال أما إن كل بناء وبال على صاحبه إلا ما لا إلا ما لا يعني ما لا بد منه
[Its chain is hasan] Ahmad narrated it (3/220) from the hadith of Abu Talha Asadi through this same route, and he is truthful (saduq) as stated in Kashif by Dhahabi.