Abdullah Ibn Masud narrated:
The messenger of Allah (PBUH&HF) ordered me to follow him, on the
night of the Jinn. I went with him until we reached the hight of
Macca... (the prophet) said: "I was promised that the Jinn and human
will believe in me. As to the human they believed in me, as to the
Jinn you have seen"; he continued: "I feel that my end is drawing
near." I said: O Messenger of Allah, won't you make Abu Bakr as your
Caliph? He turned away from me, so I realized that he disagreed; I
said: O Messenger of Allah, won't you make Umar as your Caliph? He
turned away from me, so I realized that he disagreed; I said: O
Messenger of Allah, won't you make Ali as your Caliph? He said:
"(That's) him. By the One whom there is no God beside Him, if you
chose him and obeyd him He (Allah) entered you into Paradise all
together."
Sunni references:
- Majma' al-Zawa'id, by al-Haythami, v8, p314
- Also mentioned by al-Tabarani