Ignition problems Car will intermittently start then wont Has new battery on 1999 Dodge Intrepid

i can drive my car around for a few days park it . And then without any explanation go and start it in the morning and it wont start but if i wait a a hour or so it will start right up again and run fine for a couple of days as if nothing was wrong with it But then the problem will happen again i never know when it will happen I had the battery checked and it was just fine It has never died when driving it runs very strong The mystery happens only when i shut the engine off

Asked by for the 1999 Dodge Intrepid