She was married to Khunais ibn Hudhaifa, but became a widow when she was eighteen. According to Islamic tradition, after Abu Bakr and Uthman ibn Affan refused to marry her because Muhammad had told them that he intended to marry her. When her father, Umar, went to Prophet Muhammad to complain about their behavior, Prophet Muhammad replied, "Hafsa will marry one better than Uthman and Uthman will marry one better than Hafsa."
Prophet Muhammad married her after the battle of Badr in 2 AH. Hafsa was around twenty years old and Prophet Muhammad fifty-six at the time of marriage. By this marriage, Prophet Muhammad strengthened his ties to Umar, who now became his father-in-law.
According to Islamic tradition, Hafsa had memorized the Qur'an. The copy of Zayd ibn Thabit which was recorded by the instructions of Abu Bakr was given to Hafsa. Uthman, when he became a Caliph, used Hafsa's copy when he attempted to develop a definitive text of the Qur'an.