Short answer
The Buddha’s wife was Yashodhara. Before Siddhartha Gautama became known as the Buddha, he married her, and the two had a son, Rahula. According to tradition, she was a cousin of Siddhartha from the neighboring Koliya clan. Most of these details come from later Buddhist texts, so they are best read as tradition rather than verified history.
Their marriage
Traditional accounts describe the two marrying young, in a royal household where Siddhartha lived a privileged life. Some later texts describe many women attending him in the palace. This is one reason readers get different answers when they ask how many wives the Buddha had. The answer depends on how each text counts the women of the palace, and the sources do not agree on a single number. For that broader question, see How Many Wives Did the Buddha Have?
Her son, Rahula
Tradition says Rahula was born around the time Siddhartha left home. Later he was ordained as a monk and became one of the Buddha’s well-known disciples. One story in the Pali monastic texts has Rahula’s mother send him to ask his father for an inheritance, which the tradition answers with a teaching rather than property.
After Siddhartha left
Later texts describe Yashodhara’s grief when Siddhartha left the palace. Some traditions say she later joined the community of nuns and attained arahantship, the state of full awakening in early Buddhist teaching. Early texts say little about this, and the accounts differ. For more on her wider story, read Yashodhara and Gautama Buddha: Her Life and Role.
Why the name varies
Some Pali texts name a nun called Bhaddakaccana, whom some scholars identify with Yashodhara. Sanskrit texts usually call her Yashodhara, and some use the name Gopa. Because of these differences, it is wise to treat any single name, or any single detail, with care.
Related questions
If you want to know how the Buddha’s family appears in the stories about his mother and aunt, see What Happened to the Buddha’s Mother? The same question about how much of a story is history comes up for other early figures, as in Is the Story of Kisa Gotami Real?