The Messenger of Allah ﷺ said, "Whoever joins a row, Allah will join him, and whoever breaks a row, Allah will cut him off."
أخبرنا عيسى بن إبراهيم بن مثرود قال حدثنا عبد الله بن وهب عن معاوية بن صالح عن أبي الزاهرية عن كثير بن مرة
أن رسول الله ﷺ قال من وصل صفا وصله الله ومن قطع صفا قطعه الله عز وجل
[Its isnad is hasan] Abu Dawud narrated it, no. 666. See the previous hadith from Isa bin Ibrahim, with the same wording. It is also in Kubra, no. 893. Ibn Khuzayma graded it sahih, no. 1549, as did Hakim, according to the standard of Muslim, 1/213, and Dhahabi agreed with him.