I underwent surgery for a polydactyl, to remove my extra finger. The time of the operation was at about 1am in the morning and the time of the Fajr prayer was at about 5am. My husband woke me to perform the Fajr prayer but I was semi-conscious due to the effects of the anesthesia. Although I had not regained full consciousness yet, I started the prayer while I was half awake and I felt that I had performed only one Rak‘ah. My husband called and asked me if I had finished the prayer, so I ended the prayer and answered him while doubting whether I had performed the second Rak‘ah or not. Should I make up for that prayer? What should I do?
All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad, sallallaahu ‘alayhi wa sallam, is His slave and Messenger.
You have to make up for that prayer because you ended it while being unsure whether you had performed the second Rak‘ah or not. Hence, you have failed to clear your liability in the best manner since one can only clear his liability with certainty (incontestable evidence and not mere doubts).
Therefore, you should not have performed the prayer until you had regained full consciousness so that you would be aware of what you are saying. Allaah The Exalted Says (what means): {O you who have believed, do not approach prayer while you are intoxicated until you know what you are saying …}[Quran 4:43]
Allaah Knows best.
You can search for fatwa through many choices