The incident took place late on Sunday evening.
Police are looking into an attempted robbery in Somercotes.
On Sunday evening, at around 8.45pm, a man was walking along Parkside Road, when he was approached by two men on push-bikes.
One of the men then flashed a knife at the pedestrian and demanded his wallet, which was handed over.
However, when the robbers saw it had no cash inside, they gave it back and rode off.