There's a key distinction to understand: While some older Dodge Magnums *might* have had a 5.9L engine from the LA series (though this was less common in the Magnum model), the most common and well-known "5.9L" in a Dodge Magnum is actually the 5.7L Hemi. This is a significantly different and more modern engine. The numbers are often conflated due to rounding and general familiarity with the older 5.9L.
In short: If you hear someone mention a Dodge Magnum with a "5.9L" engine, they're almost certainly talking about the 5.7L Hemi. A true 5.9L LA-series engine in a Magnum is rare.