Abu Ja'far heard Muhammad ibn Ali ibn Al-Hassan recite this Quranic passage, “Allah beckons you to the abode of peace; and he guides whoever he wills to the straight path.” (Yunis 10:25)
Then he narrated from Jabir ibn Abdullah said, “The Messenger of Allah (may Allah bestow peace and blessings upon him) came to us one day and said, “I saw a dream, it was if Jibreal (upon him peace) was near my head and Mikaeal was at my feet. One said to the other, “Give him a similitude.” He said, “Listen," He listened and heard with an understanding heart. "You and your nation are like a people who the king has given land to; then built a house upon it; then placed cattle upon it; then sent a messenger to call the people to food; some responded to the messenger and others did not.
Allah is the King; the land is Islam; the house is paradise and you O’ Muhammad are the Messenger; whoever responds to you enters Islam; whoever enters Islam enters Paradise and whoever enters paradise partakes in it.”
Al-Hakim in Al-Mustadark 2:338-339 who said this chain is authentic. Imam Ad-Dhahabi said, “It is authentic.”
Imam Al-Bayhaqi’s Dalail An-Nabuwwah / Proofs of Prophethood