My engine has a couple of times when parked up the hill shaken on 2005 Nissan Pathfinder

roughly and then lost power and had to turn it of and then on. It regained power but the service engine light soon went on but then went of in about four days. What can be the problem? It's a Nissan Pathfinder 2005.

Asked by for the 2005 Nissan Pathfinder
1 answer
have codes scanned at auto zone and post so we can adv