Isma'il bin Abd al-Rahman bin Abi Dhu'ayb al-Madani al-Qurashi (may Allah have mercy on him) said: "We set out on a journey with Sayyiduna Ibn Umar (may Allah be pleased with them both) and the sun set. Out of awe of him we could not remind him of the prayer. He waited (kept travelling) until the whiteness of the horizon and the intense darkness of early night had passed; then he dismounted and prayed three rak'ahs, then led us in two rak'ahs, then said: 'This is how I saw the Messenger of Allah (peace and blessings be upon him) do it.'"
Imam al-Nasa'i (may Allah have mercy on him) narrated it through Ishaq bin Ibrahim from Sufyan with a similar meaning.
And Imam al-Bukhari (may Allah have mercy on him) recorded it from the narration of Aslam (may Allah have mercy on him), the freed slave of Sayyiduna Umar (may Allah be pleased with him), who said: "I was with Sayyiduna Ibn Umar (may Allah be pleased with them both) on the road to Makkah when news reached him that Safiyyah bint Abi Ubayd (may Allah have mercy on her) was severely ill," and he mentioned the whole hadith; at its end it says: "I saw the Prophet (peace and blessings be upon him): when he (peace and blessings be upon him) was in a hurry to travel, he would delay the Maghrib prayer and combine the two prayers."