The Messenger of Allah ﷺ said, "The partner has the greater right to what adjoins his property, as long as the partnership exists."
حدثنا عبد الله بن الجراح حدثنا سفيان بن عيينة عن إبراهيم بن ميسرة عن عمرو بن الشريد
قال رسول الله ﷺ الشريك أحق بسقبه ما كان
No references are available.
Bukhari related it. See hadith no. 2495.