I'm almost certain this was set after "Paradise Syndrome," or the reboot re-imagining thereof. The scene I remember is that Kirk and Spock are in the hallway/turbolift when Spock finally collapses from exhaustion. He's trying to stay awake and get back up, and Kirk and McCoy convince him to finally let himself rest.