TMI...What is this?!

Hi ladies sorry this is kinda TMI the pic below. I am supposed to get my period in 2 days and I just had this when I wiped. I had a little bit of pink spotting about 2 days ago too (day 23 or my 26 day cycle which was about 10dpo for me)

but wtf is this brown thing? lol