Ist ging "gehen" aber gestern/bevor?
ging is past tense, yes.
Why isn't this "I came out of the mosque?" "I went out of the mosque" doesn't sound right--maybe "I left the mosque?"
The speaker's pronunciation is poor. 'Ging' sounds like something between 'kam' and 'kám'.