It is sunnah to pray two rak’at after maghrib. Earlier we mentioned that Ibn ‘Umar narrated that the Prophet would not miss them. As to their content, it is preferred to recite, after al-Fatihah: “Say: O Disbelievers,” and “Say: He is Allah, the One,” in the sunnah prayer after salatul maghrib.
Ibn Mas’ud says: “I cannot count how many times I heard the Messenger of Allah recite, in the two rak’at after maghrib and in the two rak’at before fajr ‘Say: O disbelievers,’ and ‘Say: He is Allah, the One.'” This is related by Ibn Majah and at-Tirmizhi. The later grades it hasan.
It is preferred to pray this sunnah prayer in one’s house. Mahmud ibn Labid reports that the Prophet sallallahu alehi wasallam prayed maghrib with the tribe of ‘Abd al-Ashhal. After he made the taslim, he told them: “Perform these two rak’at in your houses.” This is related by Ahmad, Abu Dawud, at-Tirmizhi, and an-Nasa’i. We have already mentioned that the Prophet prayed them in his house.