AnnaS, this may possibly appear in some of Cervantes's work, but it was probably used even earlier.

Both Mav and Miia have got close to the proverb's meaning, and I'll be discussing both options with my students this week. Thank you muchly for your help, everybody.