Sunan Ibn Majah, Book 2, Hadith 22 (Ibn Majah 688)

It was narrated from Salamah bin Akwa' that:

He used to pray the Maghrib with the Messenger of Allah when the sun set.