The Maghrib prayer (Arabic: صلاة المغرب ṣalāt al-maġrib, '"sunset prayer"), prayed just after sunset, is the fourth of five obligatory daily prayers (salat) performed by practicing Muslims.
The formal daily prayers of Islam comprise different numbers of units, called rakat.
The Maghrib prayer has three obligatory (fard) rak'at and two recommended sunnah and two non-obligatory nafls. The first two fard rak'ats are prayed aloud by the Imam in congregation (the person who misses the congregation and is offering prayer alone is not bound to speak the first two rak'ats aloud), and the third is prayed silently.
To be considered valid salat, the formal daily prayers must each be performed within their own prescribed time period. People with a legitimate reason have a longer period during which their prayers will be valid.