NEW YORK — LeBron James drove left, the No. 4 scorer in NBA history needing a basket to beat the worst team in the league.

Defending him was a journeyman who hadn't even gotten off the Knicks' bench in a month.

James' shot didn't go in. Didn't even get to the rim.

Mario Hezonja blocked James' shot with 2.3 seconds to play, allowing New York to complete a late rally and beat the Los Angeles Lakers 124-123 on Sunday.

"To beat a great player, sometimes you've got to do the unexpected and you've got to make big plays," Knicks coach David Fizdale said, "because you know that they're gearing up to make a big play."

The Lakers led by 11 with under 3 1/2 minutes remaining before the Knicks charged back largely because of their defence against James. DeAndre Jordan also blocked one of his shots in the final minute, and James also missed a jumper with the Lakers clinging to a one-point lead.

James finished with 33 points, eight assists and six rebounds in his return after sitting out a game, but the Knicks spoiled it with a closing 13-1 burst. James shot just 4 for 15 in the final quarter.

"He just missed shots," Hezonja said. "If you are saying that you are the reason that he is missing shots, you are an idiot."

Actually, Hezonja was one of the reasons after getting the assignment in his return to the rotation after not playing since Feb. 13, sitting out 12 straight games.

Emmanuel Mudiay had 28 points and eight assists for the Knicks, who snapped an eight-game losing streak. His two free throws with 22 seconds remaining were the final points of the game.

Kyle Kuzma added 18 points for the Lakers, who have lost three straight and eight of nine.

James sat out Friday in Detroit on the second night of back-to-back games and had plenty of energy for his lone visit of the season to Madison Square Garden. And it appeared his Lakers would ease to the victory when James' jumper with 3:44 to play gave them a 122-111 lead.

But everything changed from there and the Knicks ended up with just their NBA-low 14th victory of the season.

"We didn't close the game out. Being the competitor that I am, it bothers me that I didn't make enough plays down the stretch. It bothers me that I didn't even get a shot at the hoop. Of course that stuff bothers me," James said.

"But what's the difference between their record and our record? Two teams out of the post-season. So it's no difference. We could have a couple of more wins than them but both teams right now are looking on the outside looking in."

James' trip to one of his favourite arenas was his first in a long time where his team has no championship hopes, where instead of All-Star teammates, his Lakers had as many mismatched parts as the Knicks. James got the usual big cheers for an exciting play, but also the type of criticism he has rarely faced during his career.

Cameras showed James sitting all the way at the end of the bench during first-half play, far from some teammates. Knicks TV analyst Walt Frazier criticized James for not publicly being more part of the team, saying James "doesn't really care" about the perception.

The Knicks made 11 of their 15 shots, and even when they missed it wasn't because of great Lakers defence. Of their four misses, two were unsuccessful dunk attempts by Jordan.

They finished 16 of 22 in the period to lead 41-30, but the Lakers outscored them 36-22 in the second to bring a 66-63 edge into halftime.

TIP-INS

Lakers: Josh Hart returned after missing a game with right knee patellar tendinitis. Lance Stephenson missed a fifth straight game with foot/toe injuries.

Knicks: Fizdale said starters Dennis Smith Jr. (sore lower back) and Noah Vonleh (sprained right ankle) were day-to-day and that G Frank Ntilikina (groin) was progressing, though there's still no timetable for his return.

ON THE JOB TRAINING

Though rookie Kevin Knox has shot miserably in his first season, Fizdale thought games like Sunday and then Monday against Toronto were good for the first-round pick, no matter how he shot, because they were learning experiences.

"Back-to-back games, I think it's going to be good for him. LeBron today and obviously Kawhi (Leonard) tomorrow, so welcome to the league, kid, and this is what it's about. This is why I wanted him in this," Fizdale said. "Take those lumps now and later on in his career no one will remember this stuff, when he now is the guy that's beating up on the kids. So this is all good for him."

INGRAM'S INJURY

Lakers coach Luke Walton said he was "thrilled" for Brandon Ingram, who had thoracic outlet decompression surgery on his right arm Saturday. The forward was ruled out for the season earlier this month after he was diagnosed with deep venous thrombosis. A blood clot caused shoulder pain for Ingram, and Walton said he hadn't been comfortable talking about Ingram's health while he and the team were gathering information on treatment options.

"I'm thrilled for him," Walton said. "He's a young man that has his whole future ahead of him so it was good to hear that everything was successful."

UP NEXT

Lakers: Visit Milwaukee on Tuesday.

Knicks: Visit Toronto on Monday.