A day after reaching the Eastern Conference finals, the Boston Celtics won the NBA draft lottery, earning the No. 1 pick.

The Celtics will be followed by the Los Angeles Lakers and Philadelphia 76ers.

Boston becomes the first team to finish with the top record in a conference and then pick first overall since the Lakers did so and made James Worthy the No. 1 pick in the 1982 draft.

The Celtics got the pick in a swap with the Brooklyn Nets as part of the continuing fallout of a 2013 trade that sent Kevin Garnett, Paul Pierce and Jason Terry to Brooklyn. The Nets had the worst record in the league this season and thus had the greatest chance at getting the No. 1 pick. Brooklyn, in turn, will get the Celtics' pick in the draft, which is No. 27 overall. Boston also owns Brooklyn's first-round pick in next year's draft.

Pierce, who retired at the end of the season, took to Twitter to acknowledge his hand in the Celtics' lottery fortune.