The phrase
"gift horse" refers to a situation where someone is giving you something for free, and it's impolite or ungrateful to question or criticize what they're offering. It means you should appreciate the gift given to you and not ask too many questions about it.
Full definition