With overtaking difficult on the Marina Bay street circuit, grid positions are likely to be crucial - and Massa was understandably delighted to have pipped Hamilton at the death.
"The car was so nice to drive and it is so great that I managed to do a perfect lap," said the 27-year-old after his lap of one minute, 44:519 seconds.
"It was a great achievement. I made the corners perfect, so it is fantastic and one of the most incredible feelings a driver can have."
Hamilton insisted he was happy with second after he almost missed out on the pole position shoot-out, sneaking through in 10th, but warned that overtaking in the race will be almost impossible.
You can read more reactions from the top three drivers given during the post qualifying press conference here. The race tonight will start from 7.30pm and it is live on Channel 5. Massa for the win! Go Ferrari!
2008 Singapore F1 Grand Prix: Day One Report with Videos
Inside the Williams F1 Simulator
Singapore Grand Prix Preview Video
1966 Singapore Grand Prix
2008 Singapore F1 Grand Prix Road Closure and Public Transportation Guide