It is narrated from Hazrat Abu Huraira (may Allah be pleased with him) that the Holy Prophet (peace and blessings be upon him) said: A person is on the religion of his friend, so you should consider carefully whom you take as your friend.
Hadith Referenceمسند احمد / مسند المكثرين من الصحابة / 8417