Answered by Shaykh Hamza Karamali, SunniPath Academy Teacher
When and how exactly is the qunoot done in the Shafii school?
In the Name of Allah, Most Merciful and Compassionate
The qunoot is a main sunna in the fajr prayer and in the witr prayer during the second half of Ramadan. It is makruh to do the qunoot during the witr prayer in other than the second half of Ramadan.
One makes the qunoot in the final rak’ah of each of these prayers after rising up from the bowing (ruku’) and before going into prostration (sujud). The sunna du’a that one recites can be found in Reliance (allahumma-h-dina fi man hadayta etc.) It is also sunna to add the Hanafi du’a for qunoot (allahumma inna nasta’inuka etc.) after this du’a.
If one omits (whether forgetfully or otherwise) the qunoot in the fajr prayer or the witr prayer in the second half of Ramadan, it is sunna to repair the damage with the forgetfulness prostration.
(Tuhfat al-Muhtaj, 2.230-231).
And Allah knows best.
Hamza Karamali