Microsoft Store offers downloads of NBA 2K17: The Prelude for free. Note that your progress in the Prelude will transfer over if you purchase NBA 2K17, which is schedule for release September 16.

Note that PlayStation Store also offers it for PlayStation 4 for free.