You raise an open hand with a small turd in the palm towards the creature, and close it into a fist, when you open the fist there will be a wooden ring in it.
The creature makes a CON save, on failure it feels funny, DC22 passive perception to realize it no longer feels its sphincter, otherwise it won't understand what changed until its next long rest, at which point it will be unable to relieve itself. The creature no longer has a rectum, each day it will gain a level of constipation (exhaustion) until the spell is lifted or it dies. Magic that removes levels of exhaustion (e.g. Greater Restoration) work but the curse can only be lifted with the Wish spell or by affected creature putting on the ring. Wearers of the ring do not have to poop, it vanishes upon the curses conclusion.
* - (a turd, which the spell consumes)