NIYYAT (intention) is made while saying the takbîr of iftitâh (beginning). To make niyyat for namâz means to pass through the heart its name, time, qibla, to wish to follow the imâm (when performing namâz in jamâ’at), to mean to perform namâz.
The niyyat made after the takbîr of iftitâh is not sahîh and namâz performed thereby is not acceptable. While intending for fard or wâjib prayers, you must know which fard or wâjib of the prayer you will perform. It is not necessary to make niyyat for the number of rak’ats. When performing a sunnat, the niyyat “To perform namâz” will suffice. The niyyat for the namâz of janâza is made as “To perform namâz for Allah’s sake and to pray for the deceased.”
The imâm does not have to make niyyat to be the imâm for men. But (if he does not) he will not attain the thawâb of namâz in jamâ’at. If he makes niyyat to be the imâm he will attain this thawâb, too. The imâm has to make the niyyat as “To become the imâm for women,” (when he is to conduct the jamâ’at of women).
While performing worships, a verbalized niyyat is not enough. If it is not done through the heart, the worships will not be acceptable.