Los Angeles Lakers forward Anthony Davis nearly cost the team an immediate NBA playoff berth Tuesday night when he fouled Minnesota Timberwolves guard Mike Conley Jr. with second left in the last quarter.

The Lakers were up three points in the final seconds and all Davis had to do was shut down Conley as the guard tried to hit a last-second 3-pointer to tie the game. Davis ran into Conley at the end and Conley sank all three free throws to tie the game.

CLICK HERE FOR MORE SPORTS COVERAGE ON FOXNEWS.COM

Lakers guard Dennis Schroder hits a 3-pointer in the final seconds of the fourth quarter against the Minnesota Timberwolves on Tuesday, April 11, 2023, in Los Angeles. (AP Photo/Marcio José Sánchez)

The foul essentially negated Dennis Schroder’s go-ahead basket with 1.4 seconds remaining.

«It’s unfortunate that AD had a brain fart and botched his game-winning shot,» LeBron James said after the game, pointing to Schroder.

Davis came over and apologized.

the Lakers the big man appeared on the scoreboard as Los Angeles won in overtime 108-102

LAKERS RACE BACK FOR VICTORY IN OVERTIME IN PLAY-IN TOURNAMENT TO GET THE SEVENTH SEED IN THE NBA PLAYOFFS

Minnesota Timberwolves guard Mike Conley is fouled on a 3-point shot by Lakers forward Anthony Davis during the play-in tournament game Tuesday, April 11, 2023, in Los Angels.

Minnesota Timberwolves guard Mike Conley is fouled on a 3-point shot by Lakers forward Anthony Davis during the play-in tournament game Tuesday, April 11, 2023, in Los Angels. (AP Photo/Marcio José Sánchez)

Davis played 43 minutes and had 24 points, 15 rebounds, four assists, three blocks and two steals. James had 30 points to lead the Lakers in 45 minutes. He added 10 rebounds and six assists in the win.

«It took us everything to get to where we are, and it took us even harder tonight,» Davis said. «But we have a couple of days before we go to Memphis to start preparing for them. It’s been a battle. It’s been an up and down season for us, but now it’s time to show who we are and we’re showing it tonight.»

Schroder had 21 points, four rebounds and two assists.

«Once you get to the end of things, to have everybody healthy, to play at the kind of pace that we’re playing at, to defend at the level that we’re defending at, to go into the biggest moment of the year, you can’t ask for a better situation,» Lakers coach Darvin Ham said.

Lakers forward LeBron James celebrates after a 3-pointer by Dennis Schroder against the Minnesota Timberwolves on Tuesday, April 11, 2023, in Los Angeles.

Lakers forward LeBron James celebrates after a 3-pointer by Dennis Schroder against the Minnesota Timberwolves on Tuesday, April 11, 2023, in Los Angeles. (AP Photo/Marcio José Sánchez)

CLICK HERE TO GET THE FOX NEWS APP

The Lakers will play the Memphis Grizzlies in the first round of the playoffs.

Associated Press contributed to this report.