the Messenger of Allah ﷺ said, "There should be no causing of harm or reciprocation of harm. A person is allowed to fix a wooden peg in the wall of his neighbor, and the width of a public pathway is seven cubits."
قَالَ رَسُولُ اللهِ ﷺ لَا ضَرَرَ وَلَا ضِرَارَ وَلِلرَّجُلِ أَنْ يَجْعَلَ خَشَبَةً فِي حَائِطِ جَارِهِ وَالطَّرِيقُ الْمِيتَاءُ سَبْعَةُ أَذْرُعٍ