قَالَ: أَنْ تَعْبُدَ اللَّهَ كَأَنَّكَ تَرَاهُ، فَإِنْ لَمْ تَكُنْ تَرَاهُ فَإِنَّهُ يَرَاكَ
Translation: He said: Ihsan is that you worship Allah as though you see Him; and if you do not see Him, He indeed sees you.
The Prophet ﷺ defined Ihsan as worshipping Allah as though one sees Him; and if one cannot attain that state, remaining conscious that Allah sees the worshipper.
أَنْ تَعْبُدَ اللَّهَ means “to worship Allah.” The structure كَأَنَّكَ تَرَاهُ means “as though you see Him.” This is a comparison that conveys deep attentiveness, not a claim that a person physically sees Allah in ordinary worldly life.
Returning one's attention respectfully when distracted during prayer is one practical exercise in this kind of focused worship.