Probably not the fuel pump. Sounds like either an idle air control valve issue, or a vacuum leak. I'm assuming this happened while he was stopped and the car wasnt moving.