Yes, it’s true. He does have. Holy Prophet (asws) is saying:
”The Sultan, he is the Shadow of Allah upon the earth; the weak seek refuge with him and by him the oppressed are given victory. Whoever honors the sultan of Allah in the world Allah honors him on the Day of Judgment.” And Faruk el-Azam (ra) is saying: “Fear and obey Allah your Lord until the Day of Resurrection, as if you see Him, and obey the Ruler even if he is a cut-nosed Abyssinian slave: if he beats you, be patient; if he robs you, be patient and if he belittles you, be patient. Never leave the Main Jamaat of the Muslims.”
The seven shadow of Allah are:
Just a ruler, a youth who grew up in the worship of Allah, a man whose heart is attached to the Mosques, two men who love each other for the sake of Allah, meeting for that and parting upon that, a man who is called by a woman of beauty and position by he says: ‘I fear Allah’, a man who gives in charity and hides in, such that his left hand does not know what his right hand gives in charity and a man who remembered Allah in private and so his eyes shed tears.
Issue relating to the Attributes [of Allah]:
In the hadith of the seven of those who will be shaded by Allah in His shadow on the day that there is no shadow save His shadow, is this attributing Allah the Exalted with a shadow?
Answer:
Yes, as is reported in the Hadith and in some transmissions : “in the shadow of His throne”. But, in the Sahihayn it is : “in His shadow” for He has a shadow that is befitting to Him, the Glorious, and we do not know its modality (Kayf) just like the rest of His attributes…