Let $Q_8$ be the group of quaternions of order $8$. It is a non-abelian $2$-group such that $H^3(Q_8,\mathbb{Z})=0$, where $\mathbb{Z}$ has the trivial action. For a proof, see the book "Homological Algebra" of Cartan and Eilenberg, Chapter XII, Section 7 (Examples), where the case of cyclic groups and generalized quaternions is also considered.
I am curious if more examples of this kind exist (for other primes). More precisely, let $p>2$ be an odd prime. Does there exists a finite (non-abelian) $p$-group $G$ such that $H^3(G,\mathbb{Z})=0$? I could not find anything even for groups of order $p^3$.