The Prophet ﷺ said, "If a neighbor asks permission to fix a wooden beam into his wall, he should not refuse him."
حدثنا عبد الرحمن عن مالك عن الزهري عن عبد الرحمن الأعرج
عن النبي ﷺ قال من سأله جاره أن يغرز خشبة في جداره فلا يمنعه
Its isnad is sahih. It was mentioned previously at 9731 with similar wording.