Kyrie Irving led the Brooklyn Nets with 34 points, to a 115-108 win over the Cleveland Cavaliers in an Eastern Conference play-in game.
The victory makes Brooklyn the No 7 seed in the Eastern Conference playoffs, and the Nets will open their first-round series against the Celtics in Boston on Sunday.
The Nets held a “moment of reflection” before the game and donated $50,000 to the victims of Tuesday’s subway shooting in Brooklyn.
The donation is a joint gift with the New York Liberty Foundation.
More than 20 people were injured in the shooting at Brooklyn’s 36th Street station.
“It’s devastating,” Kevin Durant said of the shootings before the victory over the Cavaliers.
“To hear the sirens out front of the practice facility and see so much commotion going on outside, you hope and pray for the best for everybody involved.”
Nets coach Steve Nash said it was clear the community had been affected “in a tragic, unfortunate and senseless way”.
“We saw a side of life today that is ugly, disappointing and can, I think, at times be worrisome for people in the community,” Nash said.
“But it is more important now for our community to look at how to support each other and continue to live with conviction and find ways that we can overcome.”
On Friday, the Cavaliers will host the winner of the Wednesday game between the Charlotte Hornets and Atlanta Hawks to determine which team will be the No. 8 seed and earn a first-round matchup with the top-seeded Miami Heat.