Anas bin Malik (may Allah be pleased with him) narrates that the Messenger of Allah (peace and blessings of Allah be upon him) said: "Behold! The people have offered the prayer and gone to sleep, while you are considered to be in prayer as long as you are waiting for the prayer."