# Lipschitz function with $0$ derivative a.e. is constant on connected components

I have to find a reference on a book of the following fact:

a Lipschitz continuous function whose derivative is $0$ wherever it exists is constant on connected components of its domain

Does someone know some book where this statement is proved?

Thank You