Tīngshuō nà zuò gǔ sì hěn líng, wǒ yě mùmíngérlái.
I heard the old temple is miraculous, so I came to see it for myself.
Tips
usage
Positive — you went because the subject has a strong good reputation. Subject = the visitor; target of the reputation is usually introduced by context ('to come to a famous place/person').
grammar
而 here links two verbal phrases classically: 慕名 (admire the fame) 而 (and thus) 来 (come). Same 而 pattern in 闻风而动 and 乘兴而来.