It is narrated from Sayyiduna Ali (may Allah be pleased with him) that a man from the Ansar invited him and Sayyiduna Abd al-Rahman bin Awf (may Allah be pleased with him) and gave them (wine) to drink, and this was before the prohibition of wine was revealed. Then Sayyiduna Ali (may Allah be pleased with him) led them in the Maghrib prayer and recited "Say: O disbelievers," and he mixed up its words, upon which this verse was revealed: "Do not approach prayer while you are intoxicated until you know what you are saying."
Imam Abu Dawud (may Allah have mercy on him) narrated it in this way.
And Imam al-Tirmidhi (may Allah have mercy on him) narrated it from Abd bin Humayd (may Allah have mercy on him) and said: "This hadith is hasan sahih."
And Imam al-Nasa'i (may Allah have mercy on him) narrated it from Amr bin Ali (may Allah have mercy on him), from Abd al-Rahman (may Allah have mercy on him), from Sufyan (may Allah have mercy on him), with the like of it.
Related hadith on this topic
Explanation & Benefits
Shaykh Umar Farooq Saeedi
Benefits and Issues:
Benefit: In prayer, a person should stand with full consciousness and attention.
Therefore, if someone is overcome by sleep during prayer, the ruling for him is that he should first complete his sleep.
Source: Sunan Abu Dawood – Commentary by Shaykh Umar Farooq Saeedi, Page: 3671