My dog had been missing for two days.  Then she suddenly was at the front door when I got home!  I thought she was gone for good.
That is a miracle.
I know!  I could not believe it.  I was so happy.
I hope you make sure the dog is on a leash from now on.