Hadith Of Sahih Muslim 2638: Souls Meeting Before Birth
Apparently, there nothing wrong in terms of authenticity While reading hadiths, one should first collect all the hadiths on related topic, then there is possibility of getting a real picture. Here is related hadith https://sunnah.com/muslim:2638b After reading this variation, It appears to me that these hadith are talking about Souls feeling affinity with others according to the nature. If souls natures are similar, they will get along, otherwise they will not be on good terms with one another.