As the money lying on the street is not yours, so keeping it with yourself of giving it to a beggar is not ethical. The correct action in this situation is to deposit that money in the nearest police station so that the genuine owner of the money will receive that money.