A Mine Production crew was repositioning trim chain onto a sprocket, trying to rotate it by striking it with a hammer, so employee was kneeling in front. A fragment of metal separated from the sprocket and struck the employee in the upper leg. An attempt to retrieve it was done on 2/21;ee received two stitches and was placed on restriction to allow the injury to heal.