Engine Shuts off Prematurely

On occassion after coming to a full stop and then placing the gear shift into Park, the engine shuts itself off before I turn the ignition off. It only happens about every 10 times or so and the engine always restarts immediately. Should I be concerned and/or what could be causing this? Thanks

I think it is not shutting off, it’s stalling. Without a car, model, year or mileage and history…