All perfect praise be to Allah, the Lord of the worlds. I testify that there is none worthy of worship except Allah and that Muhammad is His slave and Messenger.
The hadeeth that you referred to in the question was cited by Al-Bayhaqi on the authority of Ibn ‘Abbaas, and the scholars ruled that it is an objectionable hadeeth (Munkar) and that it is not authentic.
Al-Albaani said in As-Silsilah Adh-Dha'eefah, “As for the Marfoo’ (directly attributed to the Prophet, sallallaahu ‘alayhi wasallam) hadeeth by Hammaad ibn Salamah, from Qataadah, from ‘Ikrimah, from Ibn ‘Abbaas, with the wording “I saw my Lord, curly-haired and beardless, wearing a green robe”; then it is an objectionable report, as stated by Ath-Thahabi in As-Siyar.”
Ibn Al-Jawzi said in Al-‘Ilal Al-Mutanaahiyah, “This hadeeth is not proven, and all its narrations are from Hammaad ibn Salamah. Ibn ‘Adiyy said, ‘It was said that Ibn Abu Al-Awjaa’ was the stepson of Hammaad, and he used to insert these ahaadeeth into his books.”
This hadeeth was also narrated by Umm At-Tufayl with the wording, “I saw my Lord in a dream in the best form; an honorable young man, His feet are in green, wearing gold shoes, lying on a gold bed (or while moths of gold are falling around him).”
Ash-Shawkaani said in Al-Fawaa’id Al-Majmoo‘ah fee Al-Ahaadeeth Al-Mawdhoo‘ah, “It was narrated by Al-Khateeb from Umm At-Tufayl, the wife of Abu Ka‘b, and it is a fabricated hadeeth, and its chain of narrators includes a fabricator, a liar, and an unknown reporter.”
Allah knows best.