Hadith 2583
Lady Aisha Siddiqa (may Allah be pleased with her) narrates: The Prophet Muhammad (peace be upon him) said: "When a person feels sleepy at the time of prayer, he should go to sleep until his sleep is over, because it may happen that a person stands for prayer while he is drowsy and, thinking he is supplicating for forgiveness, he may actually be cursing himself."