Here, you'll be able to see when your phone was last backed up.From your Home screen, go to Settings > Your name > iCloud > iCloud Backup.If you're coming from an iPhone, you'll need to make sure it's backed up in iCloud before first. Import contacts and other data from an iCloud backup Music won't be transferred, because iCloud doesn't include it in the backup – and you can't copy it straight from the phone.
If you are moving from an iPhone to a Samsung phone, you can use the Samsung Smart Switch app to transfer your data from an iCloud backup, or from the iPhone itself using a USB 'on-the-go' (OTG) cable.