Ferrari's Sebastian Vettel won an incident-packed Singapore Formula One Grand Prix on Sunday after world champion Lewis Hamilton retired early for the first time this season and a spectator set heart rates fluttering when he strolled on to the track. Hamilton was running fourth approaching the halfway point of the 61-lap race when he started losing engine power, rapidly dropping back through the field before he was told to return to the garage and call it a night. Starting from pole position, Vettel had no problems, leading all the way to take the chequered flag for the fourth time at the floodlit Marina Bay Street Circuit, despite twice losing the big advantage he had built up when the safety car was deployed. We had a really great weekend and we had a fantastic day, so much adrenalin in qualifying and the same today Sebastian Vettel Australia's Daniel Ricciardo finished second for Red Bull, his best result of the year, while Vettel's teammate Kimi Raikkonen crossed the line third. "We had a really great weekend and we had a fantastic day, so much adrenalin in qualifying and the same today," said Vettel. "I was able to look after my tyres and control the pace, so all in all, it has been a perfect weekend." Nico Rosberg finished fourth for Mercedes to cut Hamilton's championship lead to 41 points with six races remaining. Vettel trails Hamilton by 49. Vettel's win was the German's third this season and the 42nd of his career, enabling the quadruple world champion to overtake the late Ayrton Senna into outright third place for the most lifetime wins, trailing only German Michael Schumacher (91) and France's Alain Prost (51). A proven master on the slow and twisty Singapore track, Vettel gave his rivals no chance when he stamped his foot on the accelerator and made a flying getaway from the front of the grid. The 28-year-old opened up a three-second lead over Ricciardo after the opening lap and was never challenged even when the safety car was introduced. Its first appearance came on the 13th lap when Felipe Massa exited the pits and was hit by Nico Hulkenberg who speared into a wall, wrecking his Force India car and ending his race. I was feeling super optimistic and easily keeping up. I was hoping for a quick fix but it never came Lewis Hamilton The second came when a spectator briefly walked on to the circuit before climbing back though a hole in the fence. Hamilton, who had not suffered a retirement since Belgium last year, eventually drove into the pits at the end of lap 32 after his team failed to resolve the issue over six laps. "I was feeling super optimistic and easily keeping up. I was hoping for a quick fix but it never came," said the Briton, who was chasing a 41st career win to equal Senna. "Lost power guys, lost power," the 30-year-old said on lap 26 before tumbling down the field as his team tried in vain to figure out the cause of the problem. The Briton fell to the back of the pack over the next laps before his team eventually called him in after the driver asked to be stopped. "[The team] were telling me to change all these things and then I was overtaken by two Manors so I knew I was last," he said. Hamilton has enjoyed mixed fortunes under the floodlights of the Marina Bay Street Circuit, winning twice in 2009 and last year but also being forced to retire when leading in 2012 with former team McLaren.