If the foreskin
is retracted too forcefully, there could be irritation and swelling of the foreskin which could be painful.
Another cause of irritation is soap getting inside the urinary opening. Have your son wash and rinse well with clear water. Have him gently pull the foreskin back, only as far as it goes naturally, when he takes a bath or shower. Don't force it!