Hadithcore
Al-Adab Al-Mufrad, 401
sahih· Al-Albani

Anas reported that the Messenger of Allah, (ﷺ), said, "Two people do not love each other in Allah Almighty or in Islam if the first wrong action that one of them does creates a split between them."

حَدَّثَنَا يَحْيَى بْنُ سُلَيْمَانَ قَالَ‏:‏ حَدَّثَنِي ابْنُ وَهْبٍ قَالَ‏:‏ أَخْبَرَنِي عَمْرٌو، عَنْ يَزِيدَ بْنِ أَبِي حَبِيبٍ، عَنْ سِنَانِ بْنِ سَعْدٍ، عَنْ أَنَسٍ، أَنَّ رَسُولَ اللهِ صلى الله عليه وسلم قَالَ‏:‏ مَا تَوَادَّ اثْنَانِ فِي اللهِ جَلَّ وَعَزَّ أَوْ فِي الإِسْلاَمِ، فَيُفَرِّقُ بَيْنَهُمَا إِلاَّ بِذَنْبٍ يُحْدِثُهُ أَحَدُهُمَا‏.‏

References2 variants
In-Book Reference
Book 22, Hadith 5
English Reference
Book 22, Hadith 401