馬の耳に念仏(うまのみみにねんぶつ)

Japanese vocabulary

Meaning: preaching to the deaf; chanting the nembutsu into a horse's ear

See it used in real works