Miscarriage or late period?

Sorry for the TMI image, but my period was 4 days late and then today this came out. Is this just uterine tissue or did I have a miscarriage without knowing I was pregnant?