Jimmy Butler made a 3-pointer with 2.3 seconds remaining to give the Philadelphia 76ers a 127-125 victory over the Brooklyn Nets on Sunday.

Butler's shot from the right wing, similar to the one that beat Charlotte in overtime on Nov. 17, capped Philadelphia's rally from 20 points down in a game the Nets led nearly all the way.

Butler finished with 34 points and 12 rebounds, and Joel Embiid had 32 points and 12 boards for the 76ers.

Philadelphia 76ers' Ben Simmons (25) shoots over Brooklyn Nets' Rondae Hollis-Jefferson (24) in the first quarter of an NBA basketball game, Sunday, Nov. 25, 2018, in New York. (AP PhotoMark Lennihan)

Philadelphia 76ers' Ben Simmons (25) shoots over Brooklyn Nets' Rondae Hollis-Jefferson (24) in the first quarter of an NBA basketball game, Sunday, Nov. 25, 2018, in New York. (AP PhotoMark Lennihan)

D'Angelo Russell had 38 points, his highest total with the Nets, and added eight assists and eight rebounds. Spencer Dinwiddie scored 31 points off the bench.

Philadelphia 76ers Joel Embiid (21) dunks in the first quarter of a basketball game against the Brooklyn Nets, Sunday, Nov. 25, 2018, in New York. (AP PhotoMark Lennihan)

Philadelphia 76ers Joel Embiid (21) dunks in the first quarter of a basketball game against the Brooklyn Nets, Sunday, Nov. 25, 2018, in New York. (AP PhotoMark Lennihan)

Philadelphia 76ers' T.J. McConnell falls to the floor attempting to steal a rebound from Brooklyn Nets' Zhaire Smith in the first quarter of an NBA basketball game, Sunday, Nov. 25, 2018, in New York. (AP PhotoMark Lennihan)

Philadelphia 76ers' T.J. McConnell falls to the floor attempting to steal a rebound from Brooklyn Nets' Zhaire Smith in the first quarter of an NBA basketball game, Sunday, Nov. 25, 2018, in New York. (AP PhotoMark Lennihan)

Philadelphia 76ers Ben Simmons (25) drives to the basket against Brooklyn Nets Joe Harris (12) in the first quarter of a basketball game, Sunday, Nov. 25, 2018, in New York. (AP PhotoMark Lennihan)

Philadelphia 76ers Ben Simmons (25) drives to the basket against Brooklyn Nets Joe Harris (12) in the first quarter of a basketball game, Sunday, Nov. 25, 2018, in New York. (AP PhotoMark Lennihan)