This saying references something that’s difficult to find but worth searching for.
The origins of this saying date back to the Roman empire. Metal needles were expensive and hard to come across, so finding one like discovering a treasure.