Chanakya said this quote

That man who is without religion and mercy should be rejected. A guru without spiritual knowledge should be rejected. The wife with an offensive face should be given up and so should relatives who are without affection.