Before removing the SD card from the phone, it is highly recommended that you unmount the SD card first. This is covered in the following steps. Removing the card without unmounting it can result in data loss.
Go to Settings > Device > Storage
Press Eject to unmount the SD card
You can now remove the SD card from the phone
Please note that if any of your apps have used the SD card to store data, these apps may not work correctly when the card has been unmounted.