He should leave it; it is not permissible for him to take it, because it is possible that his own shoe was taken by someone other than the owner of this shoe, and he would then take this shoe and thereby commit the taking of something that is not his. However, some scholars say that if the two shoes resemble one another, that is, the man’s own shoe and the shoe that was left there, then in that case there is no harm in taking it, because it apparently seems that the other man took his shoe by mistake, thinking it was his own, and the one whose shoe is lost should take this one. There is no ground for doubt in this statement, but piety requires that he not do so; rather, he should treat it as a lost item (luqata), and if he wishes he may take it and make an announcement, or if he wishes he may leave it.
Reference: Ibn Uthaymin: Nur ala al-Darb: 12/245