It is narrated from Sayyiduna Abu Hurayrah (may Allah be pleased with him) that the Messenger of Allah (peace and blessings be upon him) said: "None of you should refuse his neighbour a place for a beam to set it in his wall." Then Abu Hurayrah (may Allah be pleased with him) would say: "Why do I see you turning away from it? By Allah, I will certainly keep proclaiming it among you."
This chain is sahih (authentic).
Hadith Referenceالسنن الكبرى للبيهقي / كتاب الصلح / 11376