Doing Excellent Good & no evil produces Divine Rebirth! Whoever is never looking only for his own comfort & who does not enjoy his house, job, & social status, this one as chief of planets will be reborn at the level of the Mahārājikā gods. Whoever venerates mother, father, clan elders and recluses, is charitable, patient and takes no pleasure in quarrelling will be reborn among the Thirty-three gods. Whoever neither like dispute, nor engage in quarrels, but only cherish righteousness go to the Yāma gods. Those who are very learned, who know Dhamma by heart, are very wise, longing for release, completely content with the virtue of pure morality goes to the Tusita gods. Those who spontaneously are based on right behaviour, giving, and monastic discipline, and are full of effort, inevitably go to the Nimmānarati gods. Those who are of superior virtue, are open-minded and devoted to giving, self-control and mental refinery will be reborn among the Paranimitta gods. One attains to the Tavatimsa heaven by right conduct, to the blessing of Brahmas fine material world by jhāna meditation and to Nibbāna by knowing things as they really are. The fruit of ones behaviour is pleasant or unpleasant. Pleasing behaviour produce a comfortable future state, while unpleasant behaviour has pain and suffering as future effect. These 3 should be reflected much upon: Death, disease, decay and old age, separation from all one likes, and the inevitable fruit of each particular type of action. Thus will one gradually reach the destruction of greed. Whoever is free from greed, progresses to performing much merit! Thus one discards all evil. You must all listen carefully to this summary. This has been explained by the Great Seer! Doing what is beneficial for others & avoiding what is harmful to others is advantageous action, while detrimental action is doing the opposite... Five rebirth-destinations as god, human, ghost, animal, or hell being have been explained by Buddha himself to be the possible states of existence!
Source (edited extract): Pańcagatidīpanī by Ashvaghosa & Saddhammaghosa: 11-12th century AC. Tr. by Ann A. Hazlewood. Journal of the Pāli Text Society. Vol. XI 1987: http://www.pariyatti.com/book.cgi?prod_id=13271