Sahih al-Bukhari, Volume 1, Book 10, Hadith 536 (USC-MSA)

Narrated Salama: We used to pray the Maghrib prayer with the Prophet when the sun disappeared from the horizon.

حَدَّثَنَا الْمَكِّيُّ بْنُ إِبْرَاهِيمَ، قَالَ حَدَّثَنَا يَزِيدُ بْنُ أَبِي عُبَيْدٍ، عَنْ سَلَمَةَ، قَالَ كُنَّا نُصَلِّي مَعَ النَّبِيِّ صلى الله عليه وسلم الْمَغْرِبَ إِذَا تَوَارَتْ بِالْحِجَابِ‏.‏

sunnah.com