The Book of Virtue, Enjoining Good Manners, and Joining of the Ties of Kinship
Ṣaḥīḥ Muslim 6708
الأَرْوَاحُ جُنُودٌ مُجَنَّدَةٌ فَمَا تَعَارَفَ مِنْهَا ائْتَلَفَ وَمَا تَنَاكَرَ مِنْهَا اخْتَلَفَ
al-arwāḥu junūdun mujannadatun famā taʿārafa minhā āʾtalafa wamā tanākara minhā ākhtalafa
Transliteration generated from the Arabic vowel marks
The full narration
Abu Huraira reported Allah's Messenger (ﷺ) Saying:Souls are troops collected together and those who familiarised with each other (in the heaven from where these come) would have affinity, with one another (in the world) and those amongst them who opposed each other (in the Heaven) would also be divergent (in the world)
Source
Ṣaḥīḥ Muslim · 6708
Ṣaḥīḥ