The Short Version
The Hermetic phrase itself is genuine, but the Law of Attraction comparison rests mostly on later interpretation. Classical Hermetic sources support a correspondence between higher and lower realms, not a clear doctrine that thoughts manifest external reality. Later Hermeticist and occult texts do draw stronger inner-outer links, so the claim contains a real basis but overstates what the original Hermetic texts say.