The Noble Shaykh Sulaymān ar-Ruhaylī حفظه الله stated:
This is the sign of having an alliance to the truth, that the person is not with a person from amongst the people unrestrictedly. That's because the person is correct at times and is incorrect at times, no matter what his virtue is. The companion of the truth is with the truth and not with the person. And this is a sign (for you) if you want to know yourself. Look (at yourself), if you are with the person you love in everything (he does and says), then know that there is a deficiency, therefore go back (and check yourself). Indeed (all of) the truth has not gathered together for anyone after the Messenger of Allāh ﷺ. Rather every human being is mistaken at times and correct at times. It is as Imām Mālik رحمه الله stated:
Everyone is (subjected to be) taken from and rejected except for the inhabitant of this grave.
He pointed to the grave of the Prophet ﷺ.
This is an important matter and an important scale (that we judge by). Look at your condition. If you find that you agree with a specific person or with people in one (specific) group, you don't oppose them (even when they're wrong), know that there's deficiency in your (way of) traversing. Therefore go back (and check) yourself.