In English translations of the Bible the name is usually spelt
Hannah, although
Hanna does appear in some 16th century Bibles. It can also be spelt as
Anna but that form comes from Greek and Latin langauge Bibles.
Other languages have developed different transcriptions.