The words are original to Disney's 1950 Cinderella — the song was written for the film by Mack David, Al Hoffman, and Jerry Livingston, the same trio who wrote "A Dream Is a Wish Your Heart Makes" for the same movie.
"Bibbidi-Bobbidi-Boo" isn't from any real folk song or older tune — it's deliberately invented nonsense, written to sound like a magic spell. Fairy-tale magic has always been voiced through sing-songy, rhythmic syllables (think "hocus pocus," "abracadabra," "simsalabim"), and the Disney songwriters leaned into that tradition: catchy nonsense that mimics incantation without needing to mean anything.
A few things that are worth knowing about the song:
- The working title was "Magic Song" — "Bibbidi-Bobbidi-Boo" was reportedly picked later because it scanned better and felt more whimsical.
- It became a bigger hit than anyone expected — agents reportedly called it a "sleeper" on first hearing because it seemed too silly to chart. It later sold well over a million sheet-music copies [disney] [d23].
- The phrase is now common shorthand for "Disney magic" — you can find it on mugs, shirts, and theme-park merchandise four decades after the film.
So: not borrowed from anything — just a songwriter's trick of inventing a sounding-like spell, which is exactly why it stuck.