Ozzie Virgil's scratch single with two out in the ninth inning drove in the tying and go-ahead runs in the Philadelphia Phillies' 6-3 victory over the Cubs yesterday in Chicago.

With the Cubs leading, 3-2, their shortstop, Tom Veryzer, fielded Virgil's grounder behind second base. He threw the ball backhanded toward second baseman Ryne Sandberg, but two runs scored when the toss went wide.

Virgil, who twice had hit the ball hard on inning-ending double plays, called his hit "nothing less than pure and simple justice when you consider how hard I had hit the ball earlier."

Winner Charles Hudson (9-10) had lost four straight since winning July 5. He got help in the ninth from Al Holland, who earned his 29th save. Lee Smith (9-6) was the loser.

Jeff Stone led off the Phillies' ninth with an infield hit and stole second on a pitchout. After Von Hayes walked, he and Stone worked a double steal that gave Stone three steals in the game. Manager Jim Frey of the Cubs ordered Mike Schmidt walked. Tim Corcoran drove a ball to left field but Henry Cotto's strong throw to the plate held Stone at third. Len Matuzsek then struck out. After Virgil's grounder put the Phillies ahead, pinch hitter Greg Gross doubled in two runs.

"In my mind," Frey said, "Veryzer should have held the ball. But I don't know what was going on in his mind and I refuse to fault a player who thought he could make the play."

Veryzer said he "simply threw the ball away . . . I guess hindsight would have told me to hold on to the ball."