When a line is deleted with dd (num dd), these lines are copied into a special buffer. p will put that buffer after the current line.
Note that the contents of that buffer are not erased; they can be put (recovered) as many times as desired.