I don't remember the exact down, but how this can happen is the play occurs on first down. The ball carrier/ receiver passes the yard to gain and a foul for holding occurs five yards past the yard to gain.
The penalty is ten yards and repeat the previous down. Since the penalty happened past the yard to gain for a first down, they move the ball back 10 yards and replay first down. Thus, first and 5.
I hope this scenario helps.