Peter Pan's creator gave the rights to a children's hospital so they could always collect royalties to fund the hospital.

Peter Pan’s creator gave the rights to a children’s hospital so they could always collect royalties to fund the hospital.

In 1929, J.M. Barrie transferred the rights to his book Peter Pan to a children’s hospital in London, called the Great Ormond Street Hospital. They now receive royalties from all adaptations of the story. When the rights expired, the British government reinstated them in perpetuity.

Source