See how the dog reacts to the person picking up the dog if it reacts well and happy then be happy you reunited them if not then don't give them the animal!!
Ask them to provide proof with photos or other reasonable means. Ask if it has a microchip, if it does confirm it belongs to them. If it is theirs give it to them and be happy you helped it get home.
See if the dog is chipped
Thanks! Your answer is awaiting moderation.