Pao Lung-Sing, a descendant of the famous Judge Pao Ching Tient, is a 9th-degree corrupt judge (lowest degree) who changes his tune when he tries to champion a woman Chi Siu-Lin, who was framed for killing her husband. As a result, Pao is forced to flee and through a series of events (often hilarious) becomes a 1st-degree judge and comes back to wreak havoc and justice on the guilty.
Stephen Chow plays an angel-type being in this movie, in where he bets the other people in Heaven that he can change the ways of 3 misguided souls and make them better people. Resurrected as a monk, he must stop a prostitute, a beggar, and an all-around bad guy from being what they are (and have been for generations). To add to all of this, he must do this in 3 Heaven days!!!