Throw away an opportunity

To fail to make use of a chance or opportunity.

The man threw away the opportunity to have a good relationship with his boss because of his constant complaints.