Dwyane Wade and Dirk Nowitzki, playing the final home NBA game of their storied careers, have each scored 30 points to lead the Miami Heat and Dallas Mavericks respectively to victory.

With wife Gabrielle Union courtside, Wade made 10 of 23 shots, including four three-pointers, as the Heat outclassed the Philadelphia 76ers 122-99.

It was a bittersweet night for the Heat (39-42), who were eliminated from playoff contention earlier in the evening when the Detroit Pistons rallied from a 22-point deficit to defeat the Memphis Grizzlies 100-93.

Wade, 37, will end his career on Thursday (AEST) at the Brooklyn Nets.