Try speaking bunny and make your hands a little less appetizing if that doesn’t work.
What I mean is this: a bunny lets out a high pitched squeal when it is in pain, so rather than saying a normal voiced Ow!, try squeaking or squealing (not too loud is fine) when he bites you.
If he is really young, he hasn’t learned to set his teeth but not hard. Many bunnies use their teeth like another hand to communicate what they want and know they are not biting to hurt and never break any skin. That’s the control he needs to learn. My Samantha does that all the time. Also, if he is in puberty now, he will bite when he gets too excited, and it’s getting to be time for a neuter.
If the squeal doesn’t work, you can put a light dab of vinegar and water on your hands to make yourself less tasty. If he licks first, he is kissing you and tasting the yummy salt. But I wouldn’t try this yet because you want him to continue to let you hold him and pet him, so you don’t want to make your hands something he dreads. Start squealing first.
BTW, corporal punishment, ie. hitting, bopping etc. does not work on rabbits. Many will learn to understand “NO!” with a bad behavior, but it means disapproval to them and they may do it again. You want him to think he’s hurting you. He would rather not.