Oklahoma State's Cade Cunningham missed a potential game-winner as time expired.
Nembhard scored 21 for the Horned Frogs (6-2, 1-1 Big 12), making his last four field goals after going without even an attempt for about 14 minutes of the second half. Samuel added 18 points including a dunk that made it a one-point game with 45 seconds left.
Samuel blocked a drive by OSU's Bryce Williams with 20 seconds left, setting up Nembhard's game-winner with eight seconds remaining.
After each team took a timeout, Cunningham's final shot didn't fall.
Cunningham scored 17 points with eight rebounds to spark a second-half Oklahoma State (6-1, 0-1) comeback after the Cowboys fell behind by as many as 13 in the first half, and trailed 37-32 at the break.
Cunningham was held to just two points on 1-for-9 shooting by halftime but opened the final period with a drive to the basket on the first possession. And he didn't let up, forging a 44-44 tie after Ferron Flavors stole the ball from Nembhard and fed Cunningham, trailing on the break, for a dunk.
Rondel Walker added 12 points for OSU, Isaac Likekele and Matthew-Alexander Moncrieffe each scored 10. Five times Cunningham scored to keep Oklahoma State's lead at five points through the second half. The Cowboys opened an eight-point lead with 2:21 to go but didn't score again.
More AP college basketball: https://apnews.com/hub/college-basketball and https://twitter.com/AP--Top25
Texas Tech junior guard Kyler Edwards transferring out of program
Texas Tech junior guard Kyler Edwards has decided to transfer, new head coach Mark Adams said Saturday.
Former Iowa Hawkeye Luka Garza becomes latest athlete to sell NFT
This year's Wooden Award winner, who became eligible to profit off of his name, image and likeness when his college career ended last month, donated a portion of the proceeds to Iowa's children's hospital.
Minnesota Golden Gophers guard Gabe Kalscheur announces transfer to Iowa State Cyclones
Minnesota guard Gabe Kalscheur announced Saturday he's transferring to Iowa State for his senior season, the first of several expected departures from the Gophers following their coaching change.