The opposite of a nightmare is a good dream, or most commonly as "sweet dream" as in the saying, "sweet dreams!"