I sent my Sol to wrong wallet but was able to recover

I sent my Sol to a wrong wallet address but someone helped me recover it