The easiest way to automate this is to install the Easy Add Thumbnail plugin by Samuel Aguilera. Just install, activate it and you're good to go. Once activated, this plugin will automatically set the post's featured image to be the first image in your post content if your post doesn't have a featured image yet.