Jesus tells us when we are sharing the good news with someone and they harden their hearts against it and will not hear it, we are to shake them off like the dust from our feet and move on. We do not cease to pray for these, we just can not hang out with them.
Matt. 10 v 14....and whoever will not receive you nor hear your words, when you depart from that house or city, shake off the dust from your feet.....
It is very important for us to watch over our Spirit Man and what we feed into ourselves. We can not hang around with corruption for too long, or the corruption (sin) will start to overflow on to us. You see what we feed our spirits has to come out at some time. So when you are around someone who curses all the time, you will begin to pick up that language and the next thing you know you are slipping out curse words yourself. Or another example, is when you are around someone who is negative and only has woe me things to say, you will begin to talk and think the same way. Sometimes you have to hurt some feelings by removing yourself from these type of people, in order to keep your own spiritual health. These people may be friends and family members, but the word of God says to keep watch over our hearts (which is our soil) so that the works of iniquity can not defile us. In other words be careful of what kind of seeds get deposited into your soil (your heart). AMEN
Sometimes it is hard to cut ourselves off from our friends and family but Jesus Himself, says that this will happen in some cases.
Luke 12 v 53...".father will be divided against son and son against father, mother against daughter and daughter against mother, mother in law against daughter in law and daughter in law against her mother in law."....
This does not mean that you have free reign to separate yourself from your family, this is just saying that if these people cause you to sin or are harmful to your spirit man then you may have to love them from afar. You may have to stick to limited communication. Now, I know there are some that will say the word says to honor your father and your mother, and you would be correct, but to honor does not mean to be in their presence. You can honor them without being in their presence.
So let us all keep a watch over our mouths and our hearts and keep His word first in our hearts, our minds and our souls and all other things will come into place. AMEN!