pull something out of the bag

pull something out of the bag

To do something that suddenly fixes an issue or ensures a favorable outcome. Down by three goals with only 10 minutes to go, the home team somehow managed to pull an amazing come-from-behind victory out of the bag. You're job is on the line here, so you'll need to pull something out of the bag at this meeting.
See also: bag, of, out, pull, something