Question: how mjolnir came in endgame?
Answer: In Avengers: Endgame, Thor brings back Mjolnir (his hammer) from the past to his "future" self through the quantum tunnel. Later in the movie, Captain America gets hold of it being worthy. ... If he doesn't - that would break the spacetime continuum, Mjolnir being destroyed in the past.