The 120th sutta of the Majjhima Nikáya.
A monk who possesses the five sankháras ("plastic forces") of faith, virtue, learning, munificence and wisdom, if he cultivate and develop them, can be reborn in any condition or world he may desire; he can even, thereby, win Nibbána (M.iii.99ff).
The sutta contains a long list of Deva-worlds and Brahma worlds.