There are a few attacks in the Super Smash Bros. series that cause the sleep effect. Characters hit by such attacks will be put to sleep instead of taking knockback. If the target is already asleep, the length of the effect will not be increased or reset.
List of sleep attacks
By enemies and bosses