How do I erase all data from my 5c iphone so I can send it in for credit?

I bought an iPhone 7 and need to erase all data from my 5c iPhone so I can send it in for credit? Can you give me instructions?
Welcome to iMore!

Here is a guide by Apple on how to prepare your phone for selling.

Original thread: https://forums.imore.com/threads/how-do-i-erase-all-data-from-my-5c-iphone-so-i-can-send-it-in-for-credit.374857/