Anal sex

Hi, so my boyfriend and I are talking about having anal sex. He has had it before but I haven’t it. I am willing to try it but I am scared. Does it hurt? What kind of lube is best for it? What should I do after? What happens after? Anything else I should/need to know? Thank you!