He went into a nearby temple for shelter .
While there he saw a stature of Yui Fei , to whom the temple was dedicated .
He went into a nearby temple for shelter and while there he saw a stature of Yui Fei , to whom the temple was dedicated .