I would agree that the quote is biblical.. but is this??

I heard just the other day that, and I quote loosely because I dont remember the exact phrase or passages, that God does not want us in His presence if our other relationships are not "right"?

I was hanging out at my friends dorm and one of the students next door was asking about that.. any ideas?