对牛弹琴
duì niú tán qín
Literally: “play the zither to an ox”
To talk to the wrong audience; to explain something to someone who can't understand or doesn't care.
English has a similar saying: cast pearls before swine
The story
Long ago, a musician named Gongming Yi played an elegant piece on his zither for an ox. The ox kept its head down and went on eating. It wasn't that the ox couldn't hear — the music just didn't suit its ears. Then Gongming Yi played sounds like buzzing mosquitoes and a lonely calf crying. At once the ox flicked its tail, pricked up its ears and walked about, listening. The story shows that words are wasted if they don't suit the listener.
Source: Mouzi Lihuo Lun (Mouzi on Settling Doubts)
How to use 对牛弹琴
Used when your words are wasted on the listener. It can mock the listener, or the speaker for not choosing the right words or audience.
Example sentences
跟他讲古典音乐,简直是对牛弹琴。
Gēn tā jiǎng gǔ diǎn yīn yuè, jiǎn zhí shì duì niú tán qín.
Talking to him about classical music is a total waste of breath.
给五岁的孩子讲经济学,就是对牛弹琴。
Gěi wǔ suì de hái zi jiǎng jīng jì xué, jiù shì duì niú tán qín.
Explaining economics to a five-year-old is like talking to a wall.