Chandler Parsons added 17 points and 11 rebounds, Dwight Howard had 15 points, seven rebounds and three blocks and Jeremy Lin scored 14 points against his former team.
Iman Shumpert led the Knicks with 26 points, five assists and four rebounds, Carmelo Anthony had 25 points and eight rebounds and Tyson Chandler scored 13 points and pulled down 11 rebounds.
The two teams went back and forth throughout the entire fourth quarter. The Rockets broke a 95-95 tie on five straight points by Harden, but the Knicks quickly answered with a Shumpert three-pointer and two Chandler free throws to tie the game. After the Knicks made a stop and Chandler got a huge offensive rebound, J.R. Smith fired up a three-pointer rather than running the clock down to hold for the final shot.
Aaron Brooks got the rebound, was fouled and knocked down both free throws, giving the Rockets a 102-100 lead with 17 seconds left. Shumpert and Beno Udrih each had a chance to tie the game, but neither could connect and time ran out.
The win improved the Rockets to 22-13 while the Knicks dropped to 10-22.