The 120th sutta of the Majjhima Nikāya.
A monk who possesses the fünf sankhāras ("plastic forces") of faith, virtue, learning, munificence und wisdom, if he cultivate und 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 und Brahma worlds.