Abdullah ibn Mausud reported that Allah's Messenger (ﷺ) said, "Verily, among the Signs of the hours is that greeting (of Islam) is limited to those known only.
In another report; A man will greet 'Salaam' only to his intimate fellow.
(A sound Hadith narrated by Ahmed)