Time Bandits (1981)
Kevin, an imaginative child, goes on a time-travelling adventure with a bunch of treasure-hunting dwarves, who have "borrowed" a map to the Universe's time holes from The Supreme Being.