8:511
فالذي فسر به بعض الصحابة من جلساء عمر، رضي الله عنهم أجمعين، من أنه قد أمرنا إذا فتح الله علينا المدائن والحصون أن نحمد الله ونشكره ونسبحه، يعني نصلي ونستغفره -معنى مليح صحيح، وقد ثبت له شاهد من صلاة النبي صلى الله عليه وسلم يوم فتح مكة وقت الضحى ثماني ركعات، فقال قائلون: هي صلاة الضحى. وأجيبوا بأنه لم يكن يواظب عليها، فكيف صلاها ذلك اليوم وقد كان مسافرا لم ينو الإقامة بمكة؟ ولهذا أقام فيها إلى آخر شهر رمضان قريبا من تسعة عشر يوما يقصر الصلاة ويفطر هو وجميع الجيش، وكانوا نحوا من عشرة آلاف. قال هؤلاء: وإنما كانت صلاة الفتح، قالوا: فيستحب لأمير الجيش إذا فتح بلدا أن يصلي فيه أول ما يدخله ثماني ركعات.
As for the explanation given by some of the Companions among those who sat with Umar, may Allah be pleased with them all, namely that we have been commanded, when Allah opens the cities and the fortresses to us, to praise Allah, thank Him and glorify Him, meaning to pray, and to seek His forgiveness: it is a fine and sound meaning. A supporting witness for it is established in the prayer of the Prophet ﷺ on the day of the conquest of Mecca, at forenoon (duha) time, of eight rak'as. Some said: it was the forenoon prayer (salat al-duha). They were answered that he did not perform it regularly, so how would he have prayed it that day, when he was a traveller who had not intended to reside in Mecca? For this reason he stayed there until the end of the month of Ramadan, close to nineteen days, shortening the prayer and breaking the fast, he and the whole army, and they were about ten thousand. These said: rather, it was the prayer of the conquest. They said: so it is recommended (mustahabb) for the commander of the army, when he conquers a town, to pray eight rak'as in it when he first enters it.
Indicative translation