The Biblical account of the life of Sarah is contained in Genesis 12 - 22 (about 16 pages) most of which is centered on Abraham.
Card expands the story into a novel of over 300 pages, so many of the details and characters are fictional.
He also seems to use the Book of Abraham, a section of the LDS Standard Works.
The core story-line does not deviate from the story told in Genesis and the Book of Abraham, although some of the details are reinterpreted.
Sarai is promised to become a priestess for the goddess Asherah, while Qira is to marry a desert prince named Lot.