There are a few things that can be said about this, and it depends on how one "approaches" infinity. 

1. Wave equations satisfy conservation of energy. Let $$E(t) = \int_{\{t\} \times \mathbb{R}^d} |\partial_t\phi|^2 + |\nabla \phi|^2 + m^2 \phi^2 ~\mathrm{d}x$$ then it can be shown that $E(t) = E(0)$ for every $t$. And hence if your "decay assumptions" is sufficiently strong to guarantee that $$ \lim_{t \to \infty} E(t) = 0 $$ then you can conclude that $E(t) = 0$ for all $t$ and hence the solution vanishes. 

2. Wave and Klein-Gordon equations satisfy "finite speed of propagation", which means that if you require decay conditions _only_ at spatial infinity (for example, of the form 
$$  \forall t \in \mathbb{R}, \forall \omega \in \mathbb{S}^{d-1}, \lim_{r \to\infty} f(t,r\omega) = 0 $$
which states that for every time, in any direction, the solution decays to zero as you move away toward infinity along the appropriate ray) you **cannot** conclude that $f\equiv 0$: in fact if the solution has compact spatial support at any time-slice, the solution will have compact spatial solution for every time slice. 

3. On the other hand, wave and Klein-Gordon equations are _dispersive_, this means that the spatial support of their solutions tend to grow over time, so decay conditions giving strict rates of decay can be used. For example, it you require that for all times, the solution vanish outside a fixed ball of radius $R$, then you can conclude that the solution must identically vanish. (There are many ways of doing this, [Holmgren's Uniqueness Theorem](https://en.wikipedia.org/wiki/Holmgren%27s_uniqueness_theorem) is one way; John's [_Plane waves and spherical means_ book](http://store.doverpublications.com/048643804x.html) has some other discussions.)

    This result can be somewhat strengthened: for example, let $\epsilon > 0$ and $R > 0$ be fixed, and suppose that your solution is "concentrated" in the following sense:
$$ \forall t \in \mathbb{R}, \int_{\{t\} \times B_R(0)} |\partial_t\phi|^2 + |\nabla\phi|^2 + m^2 \phi^2 ~\mathrm{d}x \geq \epsilon E(t) $$ 
in other words, you assume that at any given time, a fixed positive fraction of the total energy remains within the ball of radius $R$. Then you can conclude that the solution must be identically zero. (This is a consequence of the "integrated local energy estimates".) 

4. So far we have discussed decays toward spatial and time-like infinities. For wave equations (the statements in the following do not apply as well to the Klein-Gordon equations for technical and not-completely understood reasons) there is a third natural notion of infinity, which is that of _null_ or _light-like_ infinity. In the relativists' language this is the space-time boundary portion usually denoted $\mathscr{I}^\pm$. 

   Free waves are expected to radiate to null infinity. This much was well known since the 60s. And so one can study the "rescaled limit" of the solution at null infinity, which at times goes by the name of "Friedlander's Radiation Field" (for reference, one can consult F.G. Friedlander's _The Wave Equation on a Curved Spacetime_ or Lax and Phillips _Scattering Theory_). The short summary is that when this rescaled limit is identically zero (which implies a particular rate, depending on the dimension (roughly speaking faster than $r^{(1-d)/2}$), of decay of the solution to null infinity), then the solution must vanish identically. 

   More recently the analyses have been improved by [Alexakis, Schlue, and Shao](http://arxiv.org/abs/1312.1989) who prove, using unique continuation methods, a large class of "sufficient decay conditions" toward null infinity that can guarantee the vanishing of solutions in the interior which hold for not just the homogeneous wave equation on Minkowski space but also for suitable perturbations.