Prayer: Talking Mistakenly or Imagining Prayer is Finished
Practical Laws of Islam as per the teachings of Ayatullah Sistani
Ruling 1223
If a person talks mistakenly or because he imagines his prayer has finished, then based on obligatory precaution, he must perform sajdatā al‑sahw.


