Wad up a dryer sheet (Bounce) ad stuff in the ash tray.
It will absorb most odors. However, if the previous owner smoked a lot in the car, carpets/upholstery may need to be replaced to remove all the smoke damage.
2015 435i Convertible
M Sport, M Performance Power Kit
2016 Lexus CT200H
2016 Lexus NX200t