Praying on stolen or unlawfully seized land (al-Ard al-Maghsubah) is legally valid but the act itself is sinful.

Disliked Acts in Prayer Part 2: Environmental and Posture Dislikes