The only way for this to happen is through Sleep Talk.
According to Bulbapedia it does, but only in Generation IV.