I seem to recall a (Disney?) movie from the 80s with a similar plot.
yeah, this one: https://www.imdb.com/title/tt0082810/