Wa alaykum salam wa rahmatuLlahi wa barakatuHu,
In prayer, one looks at the place of prostration except for during the tashahhud when one looks at their raised finger. Some of the As-hab al-Wujuh related that one should look at the Ka’bah when praying in front of it or at the Prophet (upon him be peace) when praying behind him. However, the relied-upon opinion in these two situations is that one looks at the place of prostration. (Bushra al-Karim 218; Mughni al-Muhtaj 1/390)
And Allah knows best.
Answered by Shaykh Yaqub Abdurrahman