He finished his prayer and then asked God’s forgiveness

And whoever sees that he has completed his prayer and then seeks forgiveness from God Almighty and turns him towards the direction of the qiblah, then his supplication will be answered, and if his face is not facing the qiblah, then he commits a sin, then he repents from it .