I take it you mean the drive sprocket from the engine, There is a special lock washer that fits in the keyway under the nut, I usually tend to get a screwdriver and lever it as its backwards arsed, after tightening up to the limit you have to get a longish punch and tap the lock washer into the recess, plus replace the split pin in the end of the shaft.
Hope this helps, TTJohn