What is the orgin of the expressionbeware of Greeks bearing gifts?

The story of the Trojan Horse. The Greeks left the Trojans a gift of this magnificent, monumental horse, which turned out to be filled with soldiers who opened the gates and allowed the Greek army to sack and destroy Troy.