First, go to the Content -> Trash page.
Then, click on the Modules section:
From here, find your deleted module and click on the Restore button:
From here, optionally, you can also restore deleted sections and lessons inside of the module:
Finally, click on Confirm button, and your module will be restored.