Leading 2-1 at home in their final qualifying match, the fans in Panama City were desperate for their team to run the clock down.
Commentators in the USA have been going nuts about the national soccer team missing out on qualifying for the 2018 World Cup and here's part of the reason why.
The president of Panama has declared Wednesday to be a national holiday after the country qualified for the World Cup for the first time ever.
Sprinting down the touchline, conveniently down an athletics track, he arrived at the loose ball before the Costa Rica player and booted it as far as he could into the stands.
The USMNT will feel aggrieved at Panama's first goal, dubbed "the phantom goal", as it appeared to not even cross the line when "scored" - yet was still given by the referee. They'd cancelled out Costa Rica's opener with a highly controversial equaliser early in the second half, but, with the US heading to a surprise defeat to Trinidad and Tobago, were set for a fifth-place finish.
When a corner was swung into the box in the 52nd minute, visiting goalkeeper Patrick Pemberton wildly missed his punch and the ball ended up bouncing goalwards off Panama's Gabriel Torres and kissing the post. It's just that. well, he never actually put the ball over the line.
The hilarious clip begins with the South American minnows defending an unlikely lead against Costa Rica - who had already sealed their place in the tournament.
However, the revelation of Panama's qualification has not sat well with the Unites States - who have failed to qualify for the World Cup as a result of Panama's glorious victory.
"We are going to the World Cup, damn it!" read the front page of Critica newspaper.