Peter Pan is a musical adaptation of J. M. Barrie's play Peter Pan and Barrie's own novelization of it.
The musical, instead of using Barrie's original ending, in which Peter simply allowed Wendy and the other children to return home, includes an additional scene that Barrie had written later and titled An Afterthought. In this ending, Peter returns after many years to take Wendy back to Never Never Land for spring cleaning. He finds that he has been away so long that Wendy is now an adult, married woman with a daughter. Despondent at first, he is delighted when Wendy's daughter Jane offers to be his new mother, and instead takes her with him.