It is narrated from Abu Huraira (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "No person should prevent his brother from inserting a piece of wood into his wall." Al-A'raj said: Then Abu Huraira (may Allah be pleased with him) used to say, "What is this that I find you turning away from it? By Allah! I will continue to proclaim it before you."
Hadith Referenceمسند الإمام الشافعي / كتاب الشفعة والصلح وإحياء الموات / 1494
Hadith Takhrijاخرجه البخاري، المظالم ، باب لا يمنع جار جاره ان يغرز خشبة فى جذاره، رقم: 2453 - ومسلم، المساقاء، باب غزر الخشبة في جدار الجار، رقم: (1609)۔