It was inquired of the Messenger of Allah (sal Allahu alaihi wa sallam): “O Messenger of Allah! Which associates of ours are the best?” He said: “One whose sight reminds you of Allah, whose conversation adds to your knowledge, and whose action helps you remember the Hereafter.” [The Lives of the Sahabah by Maulana Muhammad Yusuf Kandhlawi]
When you need to socialize, turn to people with the above mentioned qualities.
“Keep yourself content with those who call their Lord morning and evening seeking His pleasure, and let not your eyes look beyond them, seeking the splendor of worldly life.” [Quran: Surah Al-Kahf, Ayat 28]