Unfortunately, yes, I have. It involved persons that wanted to be or thought I wanted to be friends or at least colleagues (on good terms). But their moral/religious/political beliefs and "code of conduct" (personally and business-wise) were pretty much exact opposites of my own. I tried to be subtle about the issues and distance myself , but they persisted, I didn't "hate" them,, but I just couldn't take it anymore. I am a big fan of live and let live and do as you please provided that you are not a hazard/detriment to me or others--I really don't care if you are a danger to yourself--that's your choice.
Eventually, I had to explain that I didn't agree with them on pretty much anything, and to basically to just leave me alone. Fortunately, they "got" the bigger hint and did just leave me alone. I still encounter them from time to time, and we just respectfully ignore one another--could have gone much worse, but it didn't.
It is one thing to respectfully "agree to disagree" or have "lively intelligent discussions" and still be friends, but there is a "line" that can be crossed and needs to be addressed.