I once had a dog whose litter-mate kept running away and coming to our apartment, which he had never been to before spontaneously finding it.
Even when they moved across the state, it took a month after running away but he showed up whining at our door, smelling all manner of foul.