Gautama Buddha, once he became aware of his past lives, noticed that he and his wife were together in them a lot. He remembered a time during the lifetime of the fourth Buddha, Dipamkara Buddha (for reference, Gautama Buddha is the 28th Buddha). At that time, a young Brahmin named, Sumedha was looking for flowers to buy for an offering to the Buddha, as he is on a visit to the town, but the king had already taken them all. Luckily, he spots a young woman named Sumidha, who is carrying seven lotus flowers. He intends to buy one off her, but she gives him five if he promises to be her husband in every future life. That is also the time that Dipamkara Buddha makes a prophecy that Sumedhi will one day become a Buddha.
It’s actually quite beautiful. And now, they are both in Nirvana, together. She was wise, who traded five lotus flowers to achieve enlightenment.