" Man follows the religion of his friend " means that he is influenced by his conditions, his words and his actions, to the extent that he would follow the way of his friend willingly or unwillingly. Perhaps he may turn to be a copy of his friend both in customs and transactions.
The Prophet (may the peace and blessings of Allah be upon him) said: