Here is a graph:
http://www.builditsolar.com/Projects/Cooling/time-lag-vs-depth.gif
This is for the Northern Hemispshere.
The graph shows average temperature as it changes throughout the year (number of days at the bottom) - for depths of: surface, 2ft, 5ft, and 12ft. Notice the peaks and valleys grow smaller as you go deeper. 12ft never gets really warm or really cold. Unlike the surface.
It shows the following features of subsoil temps:
1. deep soil temperatures "follow" the seasons with a lag. Example:12FT is warmest Oct 29. 5 months after the greatest sunlight intensity.
2. There are lots of diurnal (daily) temperaturechanges on the surface, but the temperatures futher down change slowly. Like over weeks or months.
With sandy dry soil, in the Northern Hemispshere (35N) at about 40C on a sunny day at midsummer the surface temperature can exceed 90C.
https://en.wikipedia.org/wiki/List_of_weather_records#Measuring_conditions - see the paragrpah discussing soil temps.
Desert ant species, for example, evade the high noonday heat by digging into the sand a few inches. At 3-4 feet the temperatures vary slowly over the year with insolation angle changes, but they are always substantially lower: 25C-30C. This I suppose is the answer you want. Large mammals take advantage of this and dig deep burrows, and only come out to forage at night.