NEW YORK (AP) — Jalen Brunson and Quentin Grimes each scored 27 points, and the New York Knicks clinched a playoff berth with a 118-109 victory over the Washington Wizards on Sunday night.

Immanuel Quickley added 22 points and Obi Toppin had 21 for the Knicks, who won their fourth in a row and will be in the postseason for the second time in three years. They had missed the playoffs the previous seven seasons.

Mitchell Robinson contributed eight points and 11 rebounds as the Knicks, who have won both games since losing All-Star forward Julius Randle to a sprained left ankle.

Corey Kispert led Washington with a career-high 29 points. Johnny Davis had 16 and Taj Gibson added 14.

The Knicks trailed by as many as 10 points in the second quarter and 61-53 at halftime. The Wizards extended their lead to 64-55 before the Knicks went on a 14-4 run to reclaim a lead they never gave back. New York extended its advantage to 86-79 at the end of the third quarter. Toppin opened the final quarter with a 3-pointer, giving the Knicks their first double-digit lead.

The Wizards never got closer than eight the rest of the way. New York took its biggest lead at 114-94 on Brunson’s floater with 2:38 left in the game. The Knicks were ahead 36-31 early in the second when the Wizards went on a 17-2 run and took a 48-38 lead on Deni Avdija’s 3-pointer with 7:41 left in the second quarter.

Jordan Goodwin and Kendrick Nunn each had 11 points for the Wizards.