The Prophet ﷺ said one day, "Which of you has seen a dream?" He then mentioned the meaning of it, but did not mention the disapproval. He said, the Messenger of Allah ﷺ was distressed by it, meaning it grieved him, and he said, "A caliphate of prophethood, then Allah grants kingship to whomever He wills."
حدثنا موسى بن إسمعيل حدثنا حماد عن علي بن زيد
أن النبي ﷺ قال ذات يوم أيكم رأى رؤيا فذكر معناه ولم يذكر الكراهية قال فاستاء لها رسول الله ﷺ يعني فساءه ذلك فقال خلافة نبوة ثم يؤتي الله الملك من يشاء