in reply to perl hooks for AI

Question: is "Und es begab sich" a good translation for "And it came to pass"? Where does the former come from?