Hannah was sad that she did not have a child. She prayed in the temple. She promised that if she had a son, she would raise him to serve God.