The Spaniard has 154 points, with compatriot Maverick Vinales second on 140.
Italian veteran Valentino Rossi of Yamaha and Spaniard Dani Pedrosa of Honda also start from the front row
The 32-year-old, who partially severed his right forearm in a horrific accident in 2011, was fourth fastest overall.
The Ferrari duo's easy relationship and shared sense of pragmatism have made them a good fit for the improved Italian outfit this year.
The four-time champion German controlled the contest from pole position
Ogier had been hoping to rejoin the race on Sunday's concluding four stages.
Hamilton, one point behind the German in the standings and a five-times winner in Hungary, will start from a disappointing fourth place.
The reigning four-time world champion and his co-driver Julien Ingrassia were taken to hospital for tests after their Ford Fiesta went off the road.
Formula One leader Vettel second for Ferrari.
Five-time winner Joan Roma finishes fourth
The Qatari finished in a time of 8hrs 17min 54sec, just 1min 50sec behind the winner Juan Font of Spain.
Adel finished more than 24 minutes ahead of Spaniard Josep Sole and 47 minutes in front of Cesar Sequiera last year on his way to the title.
It was his 57th career win as Mercedes delivered a perfect one-two finish
Vettel third on the grid, Raikkonen on front row.
The British Racing Drivers’ Club said it's not longer financially viable