A few times.
Once, when I had an old Mini with a faulty guage - it spluttered to a halt and freewheeled. I was lucky, the next left turn was down-hill for a quarter-of-a-mile with a petrol station at the bottom, so I rolled right to the pump!
Second time, I was lost, miles from anywhere on a country road at about two in the morning. I knocked on the first cottage with lights on, and they very kindly gave me their can full of petrol and asked that I returned it next time I passed that way. Sadly, with my famous sense of direction, I could never find their cottage, so was never able to return the can, and I still feel bad about that now!
Last time, I was rushing to collect my grand-daughter having driven from Shrewsbury, to Stoke, so was in unfamiliar territory (again!) I knew I was on vapour, and planned to pick up fuel when I had done my collection (I was running late). I ran out of fuel, but happily, this time, I walked about a hundred yards to the brow of the hill, and another hundred yards from there was a petrol station! I bought a can and filled it, and then filled up there before going on - and yes, I do carry a full can with me now!
Sorry Eccles!!!