A bug in iOS can cause the “Attempting data recovery” message on your iPhone. So, restart your iPhone and update iOS.