Dries Mertens created the first and scored the game-winning goal for Napoli as they finish off atop of Group B.
Patrick Roberts scored against his parent club in Celtic's 1-1 draw against Manchester City.
Arsenal finished in first place in Champions League Group A after beating Basel 4-1, while Paris Saint-Germain settled for a surprise home draw.
Arda Turan set up Messi's goal and had a hat-trick as Barcelona demolish Borussia Monchengladbach.
Alex Iwobi added to a hat trick by Lucas Perez as Arsenal cruised to a 4-1 win against FC Basel.