You can do this using the rank-nullity theorem, but it's a long way.
Suppose that $A$ is a $m\times p$ matrix and $B$ is a $p\times n$ matrix. Then $AB$ is an $m\times n$ matrix. By the rank-nullity theorem, it must be that
$$
\operatorname{rank}(AB)+\operatorname{Nullity}(AB)=m.
$$
You are given that $\operatorname{Nullity}(AB)=0$, so this implies that
$$
\operatorname{rank}(AB)=m.
$$
On the other hand, by the rank-nullity theorem applied to $B$, we have that
$$
\operatorname{rank}(B)+\operatorname{Nullity}(B)=m.
$$
We also know that $\operatorname{rank}(AB)=\operatorname{rank}(B^TA^T)$. Since $\operatorname{rank}(B^TA^T)$ is the dimension of the column space of $B^TA^T$, we know that the column space of $B^TA^T$ is spanned by vectors of the form
$$
a_{i,1}(B^T)_1+a_{i,2}(B^T)_2+\dots+a_{i,p}(B^T)_p.
$$
Since this is a linear combination of the vectors $(B^T)_i$, these vectors are in the column space of $B^T$, so the column space of $B^TA^T$ is a subspace of the column space of $B^T$. Therefore,
$$
\operatorname{rank}(AB)=\operatorname{rank}(B^TA^T)\leq\operatorname{rank}(B^T)=\operatorname{rank}(B).
$$
Therefore, $\operatorname{rank}(B)\geq m$, but, since $B$ has $m$ columns, $\operatorname{rank}(B)\leq m$. Therefore, $\operatorname{rank}(B)=m$ and so $\operatorname{nullity}(B)=0$.