IDIOMS

sour grapes

(idiomatic) A putting down or expression of disdain about something that one desires but cannot have.

Example:   I think his comments about that new car are just sour grapes because he can't afford it.