The best way to prevent smudging is to put a piece of paper on top of your piece of paper you are writing on and under the hand you are writing with. This is productive because your hand won’t move around on the paper so it won’t smudge the graphite. This is very recommended when you are using darker pencils like HB and up because darker is easier to smudge because the graphite is softer.