The Indiana Pacers were 10 seconds from victory against the Boston Celtics, one point ahead with possession of the ball.
Instead of holding possession and forcing a foul from their desperate opponents, Bojan Bogdanovic decided to throw a lob pass across the court to his teammate.
Celtics star Terry Rozier's steal and dunk with 1.5 seconds left capped a frantic comeback in the final half-minute that gave the Boston Celtics a 112-111 victory.
Watch the incredible play in the video at the top of the page.
The play sparked a stunned response from NBA fans around the internet.
I'm really not sure I've seen a worse basketball decision in recent years. Can't wait for Glenn Robinson III to be back. McMillan shouldn't have changed the lineup that got the #Pacers back in the first place. Tremendous choke job. Embarrassing loss. Absolutely embarrassing.— Evan Massey (@massey_evan) December 19, 2017
Steelers are embarrassed by how the Pacers finished that game.— Rich Keefe (@Keefe21) December 19, 2017
Wow.... pacers. Literally threw that one away...— Cassidy Hubbarth (@CassidyHubbarth) December 19, 2017
Meanwhile, Ben Simmons had 19 points, 12 rebounds and nine assists for the Philadelphia 76ers but it wasn't enough as the Sixers' slump continued with a 117-115 loss to the Chicago Bulls.
The Sixers, who lost for the sixth time in seven games, played without seven-foot centre Joel Embiid, who rested on the first night of back-to-back games.
Dario Saric scored 20 of his 27 points in the second half for Philly, while Nikola Mirotic and Kris Dunn each scored 22 points for the Bulls in their sixth consecutive victory.
Mirotic and Dunn each hit huge shots down the stretch as Chicago rallied past Philadelphia with a big finish. Simmons had a chance to tie it in the final seconds, but missed wildly and Mirotic grabbed the rebound.
In other games, Eric Gordon scored 17 of his season-high 33 points in the fourth quarter to power the Houston Rockets to a thumping 120-99 triumph over Utah and their 14th straight win.
James Harden added 26 points, Clint Capela had 24 points and 20 rebounds and Gordon finished with a season-high seven three-pointers.
LaMarcus Aldridge scored 19 points as the San Antonio Spurs beat the undermanned Los Angeles Clippers 109-91 in Kawhi Leonard's home debut this season.
Russell Westbrook scored 16 of his season-high 38 points in the fourth quarter, including the tiebreaking free throw with 2.3 seconds left, to lift the Oklahoma City Thunder to a 95-94 victory over the Denver Nuggets.
Jimmy Butler powered through a recent bout of back spasms to score 37 points in the Minnesota Timberwolves' 108-107 victory over the Portland Trail Blazers.
Taurean Prince scored 24 points, Dennis Schroder added 23 and the NBA-worst Atlanta Hawks beat the injury-riddled Miami Heat 110-104.
Frank Kaminsky equalled his season-high tally of 24 points in Charlotte's 109-91 victory over the New York Knicks.