anal sex

my boyfriend and i are planning on trying anal for the first time and i wanted advice on how to physically and mentally prepare for that😬 and for those who've experienced it, was it actually good or painful?