Poop emergency

Hey guys so I have a problem.. i went to take a poop 💩 today and it felt like I had to go really bad but it was pretty hard. I finally let out a really small piece but what frightens me is that when I wipe there's mucus like stuff on the tissue. Anyone know what it could be?