There are strictly increasing functions that map a set of positive measure to a set of measure zero. I will focus on functions defined on $[0,1]$, but the construction can be extended to $f:\mathbb{R}\to\mathbb{R}$. Here is a construction:

Let