Ephesians 4:29:

Let no corrupt communication proceed out of your mouth, but that which is good to the use of edifying, that it may minister grace unto the hearers.

See also:

Some of God’s Promises Have Conditions
Objection: Teaching Grace Gives People a License to Sin