Reading scripture in front of a donkey [duplicate]

You may find your answer in the link given in the comment section by Edwin Ashworth, but if you like more idioms to consider, then I suggest:

(like) water off a duck's back.

Criticisms of or warnings to a particular person that have no effect on that person. (Cambridge)

  • I've told him that he's heading for trouble, but he doesn't listen - it's just water off a duck's back.

Here is another example from Merriam Webster:

  • He tried to convince her to take the job, but his advice was like water off a duck's back.

Be banging, etc. your head against a brick wall.

To try to do something that is very difficult or impossible to achieve and therefore causes you to feel annoyed. (Cambridge)

  • I keep asking her not to park there but it's like banging your head against a brick wall.

Talking to a brick wall
thefreedictionary.com

If talking to someone is like talking to a brick wall, the person you are speaking to does not listen: I've tried to discuss my feelings with her, but it's like talking to a brick wall.
Cambridge Advanced Learner’s Dictionary & Thesaurus

Depending on your needs, the following may be appropriate: "in one ear and out the other."

If you say that something goes in one ear and out the other, you mean that someone pays no attention to it, or forgets about it immediately.
Collins English Dictionary