(5) The Book of Mosques and Places of Prayer
كتاب الْمَسَاجِدِ وَمَوَاضِعِ الصَّلاَةِ
(38) Chapter: The beginning of the time for Maghrib when the sun sets
(38) باب بَيَانِ أَنَّ أَوَّلَ وَقْتِ الْمَغْرِبِ عِنْدَ غُرُوبِ الشَّمْسِ ‏
Sahih Muslim 636 

Salama b. al-Akwa' reported that the Messenger of Allah (ﷺ) used to pray the evening prayer when the sun had set and disappeared (behind the horizon).

حَدَّثَنَا قُتَيْبَةُ بْنُ سَعِيدٍ، حَدَّثَنَا حَاتِمٌ، - وَهُوَ ابْنُ إِسْمَاعِيلَ - عَنْ يَزِيدَ بْنِ أَبِي عُبَيْدٍ، عَنْ سَلَمَةَ بْنِ الأَكْوَعِ، أَنَّ رَسُولَ اللَّهِ صلى الله عليه وسلم كَانَ يُصَلِّي الْمَغْرِبَ إِذَا غَرَبَتِ الشَّمْسُ وَتَوَارَتْ بِالْحِجَابِ ‏.‏
Reference : Sahih Muslim 636
In-book reference : Book 5, Hadith 273
USC-MSA web (English) reference : Book 4, Hadith 1328
  (deprecated numbering scheme)