The Marlins had trailed 1-0 for much of the game before pushing across the tying run in the bottom of the ninth on Lucas' two-out single against Tigers closer Joaquin Benoit.
Reed then hit Donovan Solano in the helmet with a pitch -- the Marlins second baseman left the field under his own his power -- and walked Christian Yelich before Stanton came through with an RBI single to center field for the game-winner.
Steve Cishek (4-6) was credited with the win as Miami clinched its three-game season-ending series against the American League Central champions.
Alex Avila drove in the only run for the Tigers.
Trader Joe's: Car crashes into Long Island store, injuring 11
Selena Gomez drops F-bomb, walks off stage during Jingle Ball performance