The Vimānavatthu (Vimāna-; abbreviated as "Vv") is a Theravada Buddhist scripture, the sixth book of the Khuddaka Nikaya in the Pali Canon.
[1] Each of the stories in the Vimanavatthu follows the same pattern, using the frame of the Buddha's disciple Mahamoggallana asking a deva the reason for their current residence in a divine abode.
The deva then relates the good deeds in their previous birth that lead to their rebirth in the divine realm.
[1] Its contents closely resemble a section of the Mahavastu, as well as a fragmentary Sarvastivada text from the Ksudrakagama called the Vimānāvadāna, suggesting an origin in an older collection of stories.
[2] The collection as a whole was probably directed at lay Buddhists, and present a relatively simply view of karma where good deeds are rewarded by promising rebirth.