Impurity on a distant corner of a large prayer rug does not by itself invalidate the prayer when none of the required contact places touches it.

The 27 Requirements for Valid Prayer: Purity and Covering