This can vary based on which version of Android you're running and which device you're using.

For example on a Samsung S5 you navigate to Settings > System > About Device.

Then you navigate down to 'Build Number' and tap that 7 times.