If you have good neighbours, you can bear living in a bad cottage; if you have bad neighbours, you can't bear living even in a good palace!
or simply: