Hannah is one more great hero of our faith. She was a great woman of faith and prayer. But She is not the Perfect Prayer. Hannah, as we see in story of I Samuel 1 was a woman fallen into the trap of massive idolatry. But, as we see in the song of I Samuel 2, a woman who trusted and hoped in God her Savior who is better than everything else.
We have mis-taught Hannah. Moralism gives us a false belief that "If we just pray harder" we'll have what we want given to us or have what we don't want taken away.
But because the Gospel is true it is not the piousness of our praying but the beauty of the One to whom we pray that makes us glad - regardless of the outcome of our praying.