Miscarriage??

Not sure what’s going on, woke up at 4am this morning in pain and bleeding, then this fell out of me? Is this a miscarriage?