The Messenger of Allah ﷺ used to stay up at night with Abu Bakr discussing matters concerning the Muslims, and I was with them.
كان رسول الله ﷺ يسمر مع أبي بكر في الأمر من أمور المسلمين، وأنا معهما.
Tirmidhi narrated it (169). He said, "Ahmad bin Mani narrated to us, Abu Muawiya narrated to us, from Amash, from Ibrahim, from Alqama, from Umar bin Khattab," and he related the hadith. Tirmidhi said, "This is a hasan hadith." I say, rather it is a sahih hadith.The hadith has another isnad, as Tirmidhi said, "This hadith was also narrated by Hasan bin Ubaydullah, from Ibrahim, from Alqama, from a man from Jufi called Qays or Ibn Qays, from Umar, from the Prophet ﷺ, this hadith being part of a long story." End of quote.I say, in Tirmidhi's statement there is an indication that Alqama did not hear directly from Umar bin Khattab, or that he narrated it in two ways, once without an intermediary and once with one. This latter is correct, for it has been established that Alqama, who is Ibn Qays Nakhai, met both Ayesha and Umar bin Khattab.As for the story to which Tirmidhi alludes, it is what Ahmad narrated (175) from Abu Muawiya, "Amash narrated to us, from Ibrahim, from Alqama," who said, "A man came to Umar while he was at Arafah." Abu Muawiya said, "Amash also narrated to us, from Khaythama, from Qays bin Marwan, that he came to Umar," and he related the story. So Abu Muawiya presented two isnads, and in one of them Alqama himself was present for the story at Arafah.As for the hadith of Hasan bin Ubaydullah, Imam Ahmad also recorded it (265) from Affan, "Abdul-Wahid bin Ziyad narrated to us, Hasan bin Ubaydullah narrated to us, Ibrahim narrated to us, from Alqama, from Qurai, from Qays or Ibn Qays, a man from Jufi, from Umar bin Khattab," and he related the story, except that he did not mention the story of the night conversation.It appears from this that an error occurred in the manuscript of Tirmidhi, for Alqama did not narrate from a man called Qays or Ibn Qays, as Tirmidhi said, but rather narrated from Qurai al-Dabbi, from Qays or Ibn Qays.As for the story itself, see it in the account of the virtues of Abdullah bin Masud.