This is not necessarily true. Well... you are technically right, but some context of the reason is probably worthwhile. Combustion temps are highest when the fuel/air mixture is stoichiometrically balanced. For 10% ethanol blend gas, that is about 14.27:1 and for pure gas, it's about 14.7:1. If you go rich or lean, the combustion and exhaust temps will drop.
The statement that lean mixture will promote hotter CHAMBER temps is correct though. What happens is that a richer mixture is basically evaporating fuel in the combustion chamber and that evaporative action is pulling heat out of the cylinder walls and piston in order to support the phase change.
In rocket engines they do the same thing by running fuel through the combustion chamber walls and then pointing some of the fuel nozzles towards the inside wall of the chamber to create a film of fuel along the chamber wall to keep the metal from melting at the 5,000+ degree adiabatic flame temps.
In aircraft engines you can adjust your mixture at cruise to lean of peak by adjusting the mixture knob until the exhaust gas temperature has peaked and then falls by about 50 degrees. This is the same thing that factory manuals have you do for idle and cruise adjustments. For idle you find peak RPM and then lean the mixture until you get an RPM drop. For cruise you lean the mixture slowly until you start getting some surging while cruising, then richen slightly. When done properly, I've NEVER seen an engine have any issues with dieseling. The problem with trying to run it richer to avoid dieseling is that you are producing more unburnt fuel and carbon in the chambers and that can lead to hot spots in the chamber that can lead to preignition and dieseling after shutdown eventually. Plus your mileage will be less than it could be.