Sayyiduna Abdullah bin Mas'ud (may Allah be pleased with him) narrated something similar from the Prophet (peace and blessings be upon him) regarding istikharah.
Imam al-Tabarani (may Allah have mercy on him) said: "No one narrated this hadith from al-Hakam (may Allah have mercy on him) except al-Mas'udi (may Allah have mercy on him)."
Hadith Referenceالمعجم الأوسط / باب العين / 3724
Hadith Gradingمحدثین:إسناده ضعيف
Hadith Takhrij«قال الهيثمي: في إسناد الأوسط والصغير رجل ضعف في الحديث «مجمع الزوائد ومنبع الفوائد، ج 2، ص 280»» «أخرجه البزار فى «مسنده» برقم: 1528، 1583، 1835، 1834، وعبد الرزاق فى «مصنفه» برقم: 20210، وابن أبي شيبة فى «مصنفه» برقم: 30015، والطبراني فى «الكبير» برقم: 10012، 10052، 10421، والطبراني فى «الصغير» برقم: 524، والطبراني فى «الأوسط» برقم: 3723، 7332»