Context
In 1 Samuel 1, the narrative centers on Hannah's distress, her prayer before the Lord, and the birth of Samuel. The chapter is not merely about private desire being granted; it sets up God's larger work in Israel through the child who will become prophet, judge, and pivotal figure in the transition toward monarchy.
Common Interpretations
On the surface this looks like the clearest possible example of outcome-specific prayer working exactly as people assume it should — Hannah wanted a son, she asked God for a son, God gave her a son. But the full account of Hannah's prayer tells a more complicated and more honest story. What matters in the passage is not merely that a request was made and granted, but that the child asked for was immediately yielded back to the LORD and absorbed into God's larger purpose in Israel.
Current Position
This site's current position is that Hannah's story should not be used as a simple formula for obtaining desired outcomes. The request is inseparable from surrender, and the answer is inseparable from God's larger purpose for Israel. Samuel is not retained as a private possession proving a prayer method. He is given back to the LORD. That changes the force of the example: the passage shows dependence, vow, and divine purpose more than it shows a request system people can reproduce at will.