Lewis Hamilton said he is "not too disappointed" with losing pole to Nico Rosberg in Hungary after narrowly avoiding elimination in Q2.
After a dramatic session elongated by a deluge, Hamilton was on provisional pole in the closing moments of Q3 before having to abort for double yellows when Fernando Alonso spun ahead of him. Mercedes teammate Rosberg arrived at that part of the circuit later and, after what the German called a "big lift", went on to claim pole by just over a tenth.
Previously Hamilton had come within 0.11s of being eliminated from Q2 and seemed unfazed by missing out on pole position.
Asked if he felt the yellow flags cost him pole, Hamilton replied: "I don't know how much Nico was up but as you said I got the fastest first sector, I was four tenths up so I felt good on the lap, bit unfortunate with Fernando but these things happen.
"I'm not really too disappointed, it was a tricky session and I did the best that I could do and yeah, we still have a long race ahead of us there so I will give it everything I've got from there."
A mistake from Hamilton at Turn 1 led to his Q2 scare, with the Mercedes driver dropping down the order in the closing seconds as other drivers improved on a drying track. Hamilton admitted he was lucky to be in a good position for Sunday's race.
"I wouldn't say my heart was in my mouth but when I came in and saw how close it was, that wasn't great. I went wide at Turn 1. The rest of the lap I pushed as hard as I could, I was up on my previous time but I knew everyone would be quicker.
"I lost too much time there but very fortunate to get through and that's why, even though I'm second, I'm just grateful I'm here and this puts me in a position to fight for the win tomorrow."