To cast pearls before swine
Literally 'to throw daisies to the pigs'. Means wasting something of value on people who cannot appreciate it. Spanish equivalent of the English proverb.
Giving him that advice was casting pearls before swine.
—Is it worth explaining it to her? —It's casting pearls before swine.
Taking that wine to that party is casting pearls before swine.