Maybe you should add some precisions: what is fixed, and on what are the conditions you are looking for: on the function, the measured space? And what does mean?
This is a little bit old, but in case someone stumbles upon the question, this is the Lebesgue differentiation theorem:
https://en.wikipedia.org/wiki/Lebesg...iation_theorem