SACRAMENTO, Calif. (AP) — Christian Wood had 23 points and 14 rebounds, Eric Gordon made a clutch bucket with 12.5 seconds remaining and the Houston Rockets held off the Sacramento Kings 118-112 on Sunday night.

Kevin Porter Jr. added 23 points and seven assists for the Rockets. Garrison Mathews scored 17, while Eric Gordon and Jalen Green had 15 points apiece.

“We were ready to play tonight,” Rockets coach Stephen Silas said. “We’re not a playoff team yet but when we are this is what it’s going to look like. We’re trying to learn as many lessons as we can. I was proud of them for that.”

Buddy Hield scored 27 points for Sacramento, 10 of which came in the fourth quarter. Terence Davis had 17 points, and De’Aaron Fox added 14 points before getting ejected in the fourth after getting called for a Flagrant 2.

The Rockets, who lost to the Kings 126-114 on Friday, trailed going into the fourth but took control with an 18-5 run. Mathews had eight points during the run, including a four-point play, moments after he crashed to the court following the hard foul by Fox.

After Sacramento got within 114-112 with 47.8 seconds remaining, Green grabbed an offensive rebound and fed it low to Gordon who scored. Porter added two free throws.

“Everybody played big,” Wood said. “It’s good to see everybody click on the same page. We can build off of this.”

Houston held a 47-37 rebounding advantage. Both teams scored 50 points in the paint.

“We didn’t keep them out of the paint and they kept enough of a lead that it puts a lot of pressure on you to score,” Kings interim coach Alvin Gentry said. “We created some really good shots. It’s just a matter of us knocking them down.”

The Rockets jumped out to a fast start and led 13-0 and 21-5 before the Kings got going.

After Barnes’ 3-pointer cut Houston’s lead to one, Chimezie Metu sank a corner 3 that gave the Kings their first lead. Fox later connected on a short jumper and Barnes made a free throw after Gordon’s technical to put Sacramento ahead 60-55.

The Kings fell behind in the third but closed the quarter on a 13-4 run.

WOOD’S FAST START

For the second game in a row, Wood had a dominant first quarter, scoring 10 points and grabbing seven rebounds. The difference this time was that the Rockets’ big man was able to stay on the court. On Friday, Wood scored 15 points in the first 7½ minutes but picked up his third foul moments later and spent the rest of the half on the bench.

HE DID THAT

Davis ripped the ball out of Green’s hands while the Houston rookie was driving for a layup, drove the length of the court and was fouled while scoring on a one-handed dunk. The Rockets challenged the call but lost, and Davis completed the three-point play.

TIP-INS

Rockets: Wood had two steals and two blocks. … Jae’Sean Tate and Gordon received a technical fouls in the first half.

Kings: Sacramento missed seven of its first nine shots. … Tyrese Haliburton has entered the NBA’s health and safety protocol. … Marvin Bagley III, coming off his best game of the season, was held out with right shoulder soreness. … Richaun Holmes returned to the lineup after missing eight games while in the health and safety protocol. … Damian Jones, also back from the health and safety protocol, was called for a technical foul in the second quarter.

UP NEXT

Rockets: Face the Jazz in Utah on Wednesday.

Kings: Host the Pistons on Wednesday.