dog in the manger
noun
[ ˌdɒɡ ɪn ðə ˈmeɪndʒə ]
• a person who has no need of, or ability to use, a possession that would be of use or value to others, but who prevents others from having it.
• "what a dog in the manger you must be!"
Origin:
late 16th century: alluding to the fable of the dog that lay in a manger to prevent the ox and horse from eating the hay.