The Memphis Grizzlies beat the Detroit Pistons Wednesday night (Thursday in Australia), thanks to a half-court miracle from Matt Barnes, who hit the game-winning three-point shot with just over a second to go in the game.

The Grizzlies trailed by two points and got the defensive rebound with five seconds to go in the game. With three timeouts left for his team, the wise thing to do was call a timeout and set up a play.

Barnes had a different take, however, and dribbled the ball down the court and unleashed the 31-foot three-pointer. Barnes made the impossible shot, giving the Grizzlies the 93-92 lead and eventually the victory.

NBA TV and ESPN have posted a snippet of the shot on Twitter.

The Pistons had multiple chances to put away the Grizzlies in the game as they led 62-51 mid-way through the third quarter. However, Memphis was able to creep back with 74-67, entering the final quarter.

The Pistons were again in command for most of the fourth quarter, leading 85-79 halfway into it and then 92-87 with 1:47 to go in the game. However, the Grizzlies just won’t go away, and their late-game comeback was capped by Barnes’ game-winner.

Barnes finished with 8 points and 11 rebounds for the Grizzlies, which improved to 13-10 for the season. Zach Randolph posted a double-double of 21 points and 16 rebounds and Marc Gasol also ended up with a double-double of 19 points and 12 rebounds. Mike Conley had 11 points and 8 assists, while Courtney Lee came off the bench to score 14 points.

Contact the writer at feedback@ibtimes.com.au, or let us know what you think below.