3 year old..potty training.

Ember

Y'all.

My 3 year has been peeing on the potty for almost 2 years. But he WILL NOT POOP. He will poop in his underwear randomly in the day. He will poop in his pull up at night.

I have sat in the bathroom with him on the toilet for hours. HOURS. Just for him to go to sleep amd wake up with poop in his pull up.

Please help.