How can I save my iPhone's battery while I sleep?
Just plug your iPhone in overnight. Apple rates the battery to keep 80% of its capacity after 500 full charge cycles, and partial charges add up to one cycle. Most people replace their phones long before reaching that. So charge whenever you like, unplugged or plugged in as long as you want. It doesn't matter.