It is narrated from Sayyiduna Abdullah bin Abbas (may Allah be pleased with them both) that the Messenger of Allah (peace and blessings be upon him) said: "When you disagree about a road (its width), make it seven cubits (dhira'), and whoever constructs a building may rest (his beam or rafter and the like) on his neighbour's wall."
Related hadith on this topic