If you want to insert the image of a post, page, or custom post type into your theme, you can get it with the following code. The second parameter defines the size of the image. Allowed values are thumbnail, medium, medium_large, large or any custom registered image size.
$featured_image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'large' );