Pete Davidson knows how to stand out in a crowd.

The 28-year-old sat courtside during the Golden State Warriors game against the New York Knicks on Tuesday night in New York City and watched Stephen Curry set the new three-point record in the NBA.

He passed Ray Allen for most three-pointers made in NBA history with 2,974. 

Davidson accidentally photobombed the basketball star in a photo captured just a second after Curry made the shot. 

PETE DAVIDSON, MILEY CYRUS REVEAL THEY GOT MATCHING TATTOOS AFTER 'SNL' APPEARANCE

The "SNL" star donned a bright pink Michael Jackson sweatshirt and jeans as he sat next to fellow TV star Jon Stewart. 

Pete Davidson (in pink) celebrates after Steph Curry's record-breaking shot. 

Pete Davidson (in pink) celebrates after Steph Curry's record-breaking shot.  (Nathaniel S. Butler/NBAE via Getty Images)

Other celebs in attendance included Spike Lee, Ed Burns, Adam Duritz, Michael J. Fox, Andy Grammer, Alicia Keys, Julito McCullum, Tracy Morgan, Chris Rock, Michael Strahan, Tierra Whack, and Ramy Youssef.

After Curry made the shot, the Warriors quickly committed a foul and called a timeout so Curry and the rest of his teammates could celebrate the accomplishment.

 Jon Stewart and Pete Davidson

Celebrities Jon Stewart and Pete Davidson attend a game between the Golden State Warriors and the New York Knicks on December 14, 2021 at Madison Square Garden in New York. (Jesse D. Garrabrant/NBAE via Getty Images)

Curry shared hugs with Warriors head coach Steve Kerr, teammate Draymond Green and Ray Allen, who was in attendance at the arena. 

CLICK HERE TO GET THE FOX NEWS APP

Curry also ran off the court and threw the record-breaking basketball to his father, Dell Curry. Curry shared hugs with Warriors head coach Steve Kerr, teammate Draymond Green and Allen, who was in attendance at the arena. Curry also ran off the court and threw the record-breaking basketball to his father, Dell Curry.

Fox News' Dan Canova contributed to this report.