Deru kui wa utareru (出る杭は打たれる): the stake that sticks out gets hammered. An article on the dictionary site JapanKnowledge explains it: a person with talent who stands out, or a person who acts presumptuously, tends to be resented or criticized by others.
The proverb appears in the Hōjō godaiki of 1641, in older spelling. A later form, deru kugi wa utareru, uses kugi, nail, in place of kui, stake.