Performing a factory reset will change your phone back to its original state before the first time you turned it on. If you're passing your phone on to someone else or your phone has a persistent problem that cannot be solved, you can perform a factory reset Factory reset is not a step to be taken lightly. It'll permanently delete all your data and customized settings, and will remove any apps you have downloaded and installed. Be sure to back up any data and files you want to keep before you do a factory reset.
To do this, follow steps below:
1. Turn Your Phone In Switch Off Mode.
2. Press and hold Home key then press and hold Power key Simultaneously Do not release any key until you see Samsung logo.
3. When Recovery mood appears Select Wipe data and press Power key
4.Select Yes Delete All user Data and press again power key.
5.Wait and Select Reboot Device Option
6. Now Hard reset done
READ MORE ON SAMSUNG