Let $q:X\coprod Y \rightarrow X\coprod Y\backslash \sim$ be the quotient map, where $X\coprod Y\backslash \sim$ is the quotient space and $f:A\subseteq Y \rightarrow X$ is the attaching map. Note $\sim$ is the equivalence relation generated by $a\sim f(a)$ for all $a\in A$, where $A$ is a closed subspace of $Y$.
How do I show that $q|_X$ is injective?