Anal Sex

My bf wants to do anal. I want to as well just to try it but I don’t want it to be painful. I mean literally we had sex today and he was going hard and missed my vagina hole and it almost went in my ass and it hurt😂 like idk what to do! Does it feel good at all? How can I make it not painful?