Find the word definition

Wiktionary
if you lie with dogs you will get fleas

prov. It is important whom to choose as one's closest acquaintances.