Hamsters tend to sleep very deeply. In the wild, they will burrow deep into the ground where they can sleep relatively undisturbed. If you wake him up suddenly to hold him, he will likely interpret this as trouble (e.g., a predator) being nearby. If you would like to wake him up, do so gently. For example, you can speak softly to him. You can also gently ruffle your hand in his bedding. Hamsters are very prone to injuries from falling, so you should keep your hamster fairly close to the ground when you are holding him. Do not lift him more than 12 inches (30 centimeters) off the floor.  If he tries to make a run for it, keeping him close to the floor lessens the likelihood of injuring himself if he jumps. Consider holding him when you are lying back on the floor, which would keep him even closer to the ground. Talking to your hamster in a calm and soothing voice will help him feel more comfortable with being held. However, kissing noises can actually be frightening to him. Scruffing your hamster to pick him up can put immense pressure on his head. This pressure may be enough to cause his eyes to prolapse. You should also never pick up your hamster by one of his appendages. Not only would this likely injure your hamster, but he would also be even more disoriented by being lifted in the air by his legs. Hamsters do not know how to make an association between actions and consequences. Therefore, punishing him by yelling at him or physically punishing him will only lead to your hamster seeing you as the enemy.  A firm 'no' should be the strongest punishment you use. Blowing in his face, particularly when he bites you, should be enough to deter him from doing the action again.
Do not hold your hamster when he is sleeping. Do not lift him up high up off the floor. Avoid making kissing noises when you are holding him. Do not scruff your hamster or pick him up by an appendage. Do not punish your hamster.