良薬口に苦し(りょうやくくちににがし)

Japanese vocabulary

Meaning: the most helpful advice may be difficult to listen to; good medicine tastes bitter

See it used in real works