Sitting with hypocrites and wrongdoers to enjoy their company or to keep them company:Many of those who do not have strong faith deliberately sit with people who are immoral and sinful. They may even sit with those who attack the Shareeah and make fun of Islam and the people who adhere to it strictly. There is no doubt that this is a forbidden deed, one which could undermine a persons belief. Allaah says (interpretation of the meaning):
And when you see those who engage in a false conversation about Our Verses by mocking at them, stay away from them till they turn to another topic. And if Shaytaan causes you to forget, then after the remembrance sit not in the company of those people who are the zaalimoon (polytheists and wrongdoers, etc.) [al-Anaam 6:68]
In that case it is not permitted to sit with them, even if they are closely-related or are very kind and good company, except for the purposes of dawah or refuting their false talk. But accepting and remaining quiet about their conduct is not permitted. Allaah says (interpretation of the meaning):
They (the hypocrites) swear to you (Muslims) that you may be pleased with them, but if you are pleased with them, certainly Allaah is not pleased with the people who are al-faasiqoon (rebellious, disobedient to Allaah). [al-Tawbah 9:96]