It takes a lot of time and effort to gain a bunnies trust. Consult the FAQ on this board for bonding suggestions. But for a primer, rabbits are suckers for treats (In MODERATION!) and are very curious creatures.
Lay on the floor in your buns general area. Bring treats. Healthy treats.
I know this sounds counterintuitive, but IGNORE the rabbit. DON’T try to reach out or touch the rabbit. Let them come to you. Their natural curiousity will get the better of them, and they will come out to investigate you.
When it does, offer treats. It’ll learn to associate your hands with good things, not bad, as long as you resist the urge to grab it and pick it up.
Which leads me to the most important point, unless you absolutely HAVE to, for medical or necessary reasons, do NOT pick up your rabbit. They’re prey animals, and associate picking up with being eaten. Full stop. Up=Eaten in a rabbits mind. Very very few rabbits will think otherwise.
Over time, and it varies from rabbit to rabbit, your rabbit will reach out to you, and initiate contact. Let your rabbit lead. If it nudges you, it’s seeking your attention. Speak to it in a calm, happy voice, get down to it’s level (You’re going to spend a LOT of time on the floor, so fer cryin’ out loud, vacuum!), and let it get to know you. You’ll get nudged, pulled at, maybe nipped, and then you’ll find your rabbit nudging your hands and demanding pets. Maybe it will even jump up on you, chin you (Which means you’re now owned by the bun, welcome to the world of bunny slaves), and eventually, it will sit on or with you and snuggle.
My large rabbit, Clover, is unusual, in that she doesn’t mind being picked up and even demands it from time to time, and loves her cuddles. Our little dwarf, Dawn, is easily frightened and stand offish, and after a year or more, the best we can get from her is taking treats from our hands, nudging and tugging on us, and being willing to share space nearby us. Only recently, within the last month, has started allowing us to pet her from time to time.
Bottom line, it takes time and infinite patience. Rabbits aren’t like cats or dogs, they have a whole different mindset and thought process. But if you’re willing to put the time in, it’s SO worth it.
Oh, and one more thing. NEVER hit or yell at your rabbit. NEVER. it will utterly destroy any and all trust you may have built up to this point and you’ll have to start all over. Best of luck.