Hi Guys

Everytime I put my car in park after driving a bit it rev up and down like a wild cat for a sec or two from 700 rpm to 2000 rpm.
Sometimes it revs a few hundred rpms and stimes more but it doesnt just go down quietly
I wonder if anyone has experience this. Any ideas