STANFORD, Calif. -- Alanna Smith hit the game-winning shot for a second straight game and No. 10 Stanford escaped with another win.
Smith hit a 3-pointer with 34 seconds left as Stanford scored the final nine points of the game to beat Arizona 56-54 on Friday night. She made a left-handed lay-up with three seconds to go to give the Cardinal a two-point win at Southern California last week.
"This team is gritty," Stanford coach Tara VanDerveer said. "I couldn't say that at the beginning of the year."
Stanford trailed 54-47 before Lacie Hull hit a 3-pointer to start the game-ending run with 4:10 left, ending a nearly five minute scoreless streak for the Cardinal (22-4, 11-3 Pac 12). Smith then hit consecutive 3-pointers to give Stanford the lead.
"The path we took to defend that 3-pointer was not supposed to happen," Arizona coach Adia Barnes said. "They made us pay."
Aari McDonald, who scored 20 points for the Wildcats, missed two free throws with 17 seconds left, but Arizona had a chance when Destiny Graham stole the Cardinal inbound pass after Stanford called timeout. McDonald's 3-point attempt at the buzzer went in and out preserving the Cardinal's win.
"We escaped," VanDerveer said. "That ball looked like it was going in but somehow Maples Magic took over and knocked it out."
Smith scored 21 points and had nine rebounds for Stanford. Hull added 15 points, all on 3-pointers.
"We're doing the best we can trying to figure out how to get the ball to the right person at the right time," Hull said. "We're getting better at it."
McDonald added a team high seven rebounds and six assists for the Wildcats (17-9, 7-9), who have not won at Stanford since 2001. Graham had 11 points.
"I'm proud of our fight and I'm proud of the plays we did make," Barnes said. "For the last four minutes, Stanford made the big plays."
Graham hit a 3-pointer with 8:06 remaining to play and Arizona took a five-point lead.
The Wildcats added a basket at 4:39, their final points of the game.
Stanford led for most of the game until Arizona took a 42-40 lead midway through the third quarter. McDonald hit a lay-up at the buzzer to give the Wildcats a 47-45 lead heading into the fourth quarter.
Hull's 3-pointer late in the second quarter gave the Cardinal a 35-27 halftime advantage.
Oregon's Sabrina Ionescu may overshadow Arizona's McDonald but the redshirt sophomore continues a sensational season. She's the nation's third-leading scorer and has reached double figures in every game this season. The last Arizona player to do so inn every game was Dee Dee Wheeler in 2003-04. McDonald is now within 13 points of Barnes' Arizona single-season scoring record.
Stanford has been dominating the series with Arizona, winning 33 of the past 34 meetings. The only loss during that time was when Barnes was a player and she hit a shot at the buzzer in Tucson. "We've been on the other side," VanDerveer said.
Arizona plays at California on Sunday.
Stanford hosts Arizona State on Sunday.
More AP college basketball: https://apnews.com/Collegebasketball and https://twitter.com/AP-Top25
Syracuse women ... No. 24 Michigan
Kayla Robbins scored 23 points and No. 24 Michigan rallied from a 10-point, fourth-quarter deficit to force overtime and beat Syracuse 84-76 in a Big Ten/ACC Challenge game on Thursday night.
Buckeyes knock off No. 2 Louisville in Big Ten/ACC Challenge
Dorka Juhasz scored 15 points and Kierstan Bell added 14 as Ohio State knocked off No. 2 Louisville 67-60 in a Big Ten/ACC Challenge game on Thursday night.
Gillespie scores 24 points, No. 8 Florida State women win
Kiah Gillespie scored 18 of her season-high 24 points in the second half and No. 8 Florida State remained undefeated by rallying for a 78-68 victory over No. 19 Michigan State on Thursday night.