How to disable raise to wake

With iOS 10 Apple introduced the feature raise to wake so users could simply lift their device to wake the screen so that they could see the time and notifications without having to press a button, this feature is useful but has an affect on the battery.