The Shorter Devatā Sūtra

While staying in Śrāvastī, the Buddha is approached by an unnamed “divine being,” who inquires as to what behavior merits rebirth in the higher realms. In response, the Buddha explains, in a series of concise and powerful verses, that abandoning each of the ten nonvirtues—killing, taking what is not given, sexual misconduct, telling lies, slander, harsh words, idle talk, covetousness, ill will, and wrong views—and embracing their opposites, the ten virtues, will lead to rebirth in the higher realms.