Dealing with someone who uses obscene language

Q 3: I have a dear friend who offers Salah (prayer). I have advised him many times to stop talking everywhere about women and flirting, but his only reply is, "When Allah so wills". I hate to sit with him because of this; how should I deal with him?

A: Advise him first to stop, and if he refuses, you must avoid him in order to be away from evil and bad people, and as a way of deterring him from evil and its means. (Part No. 26; Page No. 76) May Allah grant us success. May peace and blessings be upon our Prophet Muhammad, his family, and Companions.