Fiqh-us-Sunnah Volume 1, Purification and Prayer, Fiqh 1.091.
The Hanifiyyah are of the opinion that prayer during such times is not valid, regardless of whether the prayer was obligatory or voluntary, or if one was making up a prayer or fulfilling a requirement. But, they make an exception for the afternoon prayer of that particular day and the funeral prayer (if the funeral is at any of these times, the funeral prayer is still to be made). They also permit the prostration in response to Qur’anic recitation if the respective verses were recited at such times. Abu Yusuf also makes an exception for voluntary prayers on Friday while the sun is at its meridian. The Shariyyah say that voluntary prayers which are not offered for a particular reason are disliked at such times. Obligatory prayers, voluntary prayers because of some occasion, voluntary prayers on Friday when the sun is at its meridian and the prayer of the circumambulation of the Ka’bah are all permissible at such times without any disliked aspects. The Malikiyyah say that voluntary prayers during sunrise and sunset are forbidden, even if there is some occasion for them. The same applies to a prayer that was vowed, prostration owing to Qur’anic recitation, and the funeral prayer (unless they fear some decay or alteration in the deceased). But they always allow prayer, voluntary or obligatory, at the time when the sun is at its meridian. Al-Baji wrote in his commentary to alMuwatta, “In al-Mubsut it is related from Ibn Wahb that Malik was asked about praying at mid-day and he said, ‘I found the people praying at mid-day of Friday. Some hadith do not consider it desirable (to pray at such times), but I do not stop the people from praying. I do not like to pray at that time because it is not desirable to do so.” The Hanbaliyyah say that no voluntary prayers should be made during such times, regardless of whether or not there is a reason for such prayers, and regardless of whether it is Friday or not, save for the prayer of salutations to the mosque on Friday (they allow this without any dislike for it while the sun is at its meridian or while the imam is making his address). They also say that the funeral prayer is forbidden at that time, unless there is a fear of alteration or decay in the corpse. They allow the making up of missed prayers, the vowed prayers and the prayer of the circumambulation of the Ka’bah (even if it is voluntary) at any of these three times.