Hadith 1: The example of a good companion and a bad companion is like that of the seller of musk and the one who blows the bellow of the blacksmith. As for the seller of musk, then either he will grant some of it to you, or you may buy some from him, or at least you will enjoy the pleasant fragrance from him. As for the one who blows the bellow of the blacksmith, then either he will burn your clothes or you will get an unpleasant smell from him.
Hadith 2: Keep only the companionship of a true believer.
Hadith 3: Sit amongst the elders and enquire from the Ulama and be friendly with the (Religious) Leaders.
Hadith 4: A Muslim, who associates with the people and is patient when they aggrieve him, is better than the Muslim who does not associate with them and is intolerant when they aggrieve him.
Hadith 5: A good companion is one, that when you remember Allah, he assists you and when you forget (to remember Allah), he reminds you.
Hadith 6: A good companion is one, that by seeing him, you remember Allah; and his conversations help you to increase your virtuous deeds and his deeds remind you of the hereafter.
Hadith 7: Do not keep the companionship of a person who does not acknowledge your position, like you acknowledge his position 1
1. In other words, do not keep the company of a person who looks down on you, or it could mean that he is aware of his rights which you are responsible for, but he does not acknowledge your rights.
Hadith 8: Hazrat Umar Radi Allahu anhu said ‘Do not involve yourself in that which is not beneficial to you; and stay away from your enemy and avoid your friend unless he is trustworthy, as there is none equivalent to one who is trustworthy and only one who fears Allah can be regarded as being trustworthy (An Ameen). And do not be in the company of a ‘Faajir’, for he will teach you sinful acts and do not discuss secretive issues before him; And in regards to your affairs, (only) take the advice of those who fear Allah’.
Hadith 9: Hazrat Ali Radi Allahu anhu said ‘Do not establish a brotherly bond with a sinful person, for he will adorn his actions before you (i.e. make his wrongs look good), and he will desire that you too may become like him, and (in doing so), he will bring forth his worst traits, making them seem good before you. His association with you is flawed and shameless. Also, do not establish a brotherly bond (friendship) with a foolish person, for he will put himself into hardship and he will afford you no benefit, and at times, he will try to cause you benefit, but he will end up causing you loss. His silence is better than talking, and to keep him at a distance is better than his closeness, and his death is better than his life. And do not befriend a liar as well, for living with him will not bring you any benefit. He will carry your issues to others and he will bring that which others say to you, and even if you are speaking the truth, he will not be truthful’.