Sometimes things you looked upon as sure prove to be wrong. I made
similar experiences in my life.
This quotation is not from Hegel, but form Friedrich Engels, although
the idea comes from the philosopher Hegel.
Three sources to prove it (I found more, but these will do) :
The idea that 'freedom is the recognition of necessity' appears in
Engels' Anti-Duhring. This formulation comes from Hegel, where it
plays a particular, and essential role in Hegel's system. Engels'
revival of Hegel's definition was taken up by Plekhanov and Kautsky,
and continues to have a place in the arguments of Trotskyist groups
Freedom and Necessity
( http://www.marxists.org/reference/archive/hegel/txt/davie07.htm )
According to Hegel as interpreted by Engels "Freedom is the
recognition of your necessity." Some say necessity is to be determined
by social condition. All the necessity of human beings can not be
fulfilled unless and until the same human beings create a condition
for it. But in the long course of history it has been observed that
what ever social conditions has been created by people is not being
enjoyed by the same people. On the contrary a selected few enjoy the
cream. They are the landlords, kings, capitalists and bureaucrats. By
virtue of becoming a landlord, king, capitalist and bureaucrat a
limited few enjoy the entire surplus of the society.
Freedom Practical need
( http://www.positiveatheism.org/india/s1990c40.htm )
The Columbia World of Quotations. 1996.
QUOTATION: Freedom is the recognition of necessity.
ATTRIBUTION: Friedrich Engels (18201895), German social philosopher.
Quoted in The Harvest of a Quiet Eye, Alan L. Mackay (1977).
The Columbia World of Quotations
( http://www.bartleby.com/66/17/21617.html )