What just came out of me!?

What is this? When I went to wipe myself after peeing. This was on the tissue. It a bit hard there was no blood or anything on it. It also has a foul smell.