The thirtieth sutta of the Dígha Nikáya.
It gives an account of the thirty two special marks of the superman (mahápurisalakkhanáni) which signify that their possessor will be either a world emperor (Cakkavatti) or a Buddha.
The sutta definitely states that these marks are entirely due to good deeds done in former births and can only be maintained in the present life by goodness. D.iii.142 79; the sutta is quoted in Mil. p. 405.