It is narrated from Sayyiduna Anas bin Malik (may Allah be pleased with him) that he said: "I was with the Messenger of Allah (peace and blessings be upon him) in one part of the quarters of the Ansar when he (peace and blessings be upon him) raised his blessed head and saw a tall domed structure (qubbah) that had been built. He (peace and blessings be upon him) asked: 'O Anas, whose is this dome?' I said: 'It belongs to so-and-so.' The Messenger of Allah (peace and blessings be upon him) said: 'Every building will be a burden upon its owner on the Day of Resurrection, except a building that is according to need.' The narrator said: When this saying of the Prophet (peace and blessings be upon him) reached that Ansari Companion, he immediately pulled it down. Later, when the Prophet (peace and blessings be upon him) passed by there after some time, he (peace and blessings be upon him) did not find it there, and he (peace and blessings be upon him) asked: 'O Anas, what happened to that dome?' I said: 'Your words reached its owner, so he demolished it.' He (peace and blessings be upon him) prayed for him: 'Ghafara Allahu lahu' (May Allah Almighty forgive him)." Ammar said: "Whenever a building exceeds a height of seven cubits, a caller calls out to its owner: 'O most disobedient of the disobedient! How far will you go?'"
Muhammad bin Yahya bin Abi Umar recorded it, and its chain is da'if (weak) because Muhammad bin Abi Zakariyya is majhul (unknown).