The correct answer is D. To offer a person a thing which he cannot appreciate.

The phrase "to cast pearls before swine" means to offer something valuable to someone who is not capable of appreciating it. It is often used to describe a situation where someone is trying to teach or explain something to someone who is not interested or capable of understanding.

Option A is incorrect because it means to spend money without thinking about the consequences.

Option B is incorrect because it means to spend a lot of money on the care of domestic pigs.

Option C is incorrect because it means to waste money on things that are not important.