This means: through truth (and truth will be in us when our words correspond to our deeds) we shall reassure our conscience. For by the word "heart" he means conscience. How then shall we reassure it? By placing ourselves in such a position as to speak our words before God the Witness; for this is what the words "before Him" mean. If, he says, we do not do so, and our conscience or heart condemns us, then obviously we are sinning. And if during sin we cannot hide from our own conscience, which is limited, just as man is a limited being, then all the more we cannot hide from God, who is boundle...ss and omnipresent. The meaning of this saying is as follows: children! let us not be liars before one another, loving only with the tongue, but let us prove our love by deed as well. Therefore we shall know that we are of the truth, that is, of God. And what we say, let us say as if before God; and who, even if he were more shameless than the demons, would allow himself to lie before God the Witness? But if we do not do so, and while we say that we love, our heart condemns us of lying, then we are sinning. How so? Because we think to hide from the omnipresent God. Therefore, beloved, let us dispose ourselves so as to be uncondemned before ourselves, let us walk in truth before one another, and then we shall receive boldness before God, and with this boldness we shall undoubtedly receive all that we ask of Him. Why? Because we keep His commandments. For when someone is asked, the obedience of the petitioners greatly inclines him to listen, provided they ask without doubting. And since we keep His commandments and do what is pleasing before Him, let us also hope that our prayers will not be in vain; because when two persons have a sincere mutual disposition toward each other, one usually acts immediately for the benefit of the other. And what commandment of His have we kept? The one that commands us to "love one another" (John 13:34).
Source: Commentary on 1 John