It's hardened pus from an infection, can look like a bean.
Lash egg
It is highly improbable that something a chicken ingested would end up in the reproductive tract. When finding something odd in an egg, it's good idea to take some pics as you dissect for inspection.