Hadith on Salat: Pray Sunan prayers before Maghrib if you wish

Abdullah ibn al-Muzanni reported: The Prophet, peace and blessings be upon him, said, “Pray before the sunset prayer.” The Prophet said on the third time, “For whomever wishes,” as he disliked for people to consider it an obligatory tradition.

Source: Ṣaḥīḥ al-Bukhārī 1128

Grade: Sahih (authentic) according to Al-Bukhari

عَنْ عَبْد اللَّهِ الْمُزَنِيّ عَنْ النَّبِيِّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ قَالَ صَلُّوا قَبْلَ صَلَاةِ الْمَغْرِبِ قَالَ فِي الثَّالِثَةِ لِمَنْ شَاءَ كَرَاهِيَةَ أَنْ يَتَّخِذَهَا النَّاسُ سُنَّةً

1128 صحيح البخاري كتاب التهجد باب الصلاة قبل المغرب