Is it doing this only when engine is cold?
Remove the Idle Air Control valve and clean all carbon deposits from it then put it back on. This will do the trick in most cases, but if not, replace it.
Please remember to click on accept so i receive credit. Even if you have a subscription. You will not be charged again.