Cast pearls before swine

To waste something valuable on someone who does not appreciate it.

Giving the woman the gold earrings was like casting pearls before swine.