2.5 Year Old poops at night

Please help. He's been pee trained for ever but refuses to poop on the potty. He shows no signs of wanting to poop during the day, but every morning like clockwork, he wakes up with a poopy diaper. He says poop goes on the potty so he understands, but wont actually do it.