Allah spoke to him in a dream. He said to worship him with a pure heart and to spend his life in the forest. If he did so, he would attain an even higher status than Yaqub. Ash did just this and he later became a great saint. There is much confusion as to the origin of the Gujjar people.
Most research goes around in circles.
One author quotes another till no one know where the original source is anymore. W. Crooke, Castes and Tribes of North Western India, Vol. 2 seems to be a favorite as well. Vincient A. Smith, The Early History of India says that the Gujjars were early immigrants to the Indian Sub-continent. The Huns were divided into two main groups, the Red Huns and the White Huns. The Red Huns invaded Europe while the White Huns went down in to the Oxus Valley and attacked the Kishan Kingdom of Kabul and then poured into India.