Make sure the area is clean. Apply a small amount of hardwood cleaner directly to a rag and wipe the area around the scratch.
Stain the scratch. Use a stain-filled wood marker, or another type of colored wood polish, to fill in the scratch (of course, in the same color as the wood you are repairing). Seal the wood.