And do not grieve the Holy Spirit of God, in whom you were sealed for the day of redemption.
Ephesians 4:30 RSV
Grieve not the Holy Spirit … Any of the sins Paul was forbidding in these verses would, of course, grieve the Holy Spirit in the heart of any Christian committing them; but the thought here seems especially directed against filthy conversation.
In addition to “grieving” the Holy Spirit, mentioned here, the New Testament reveals a number of other ways in which people may sin against the Holy Spirit:
They may lust against him (Galatians 5:16).
They may resist him (Acts 7:51).
They may lie to him (Acts 5:3).
They may try him (Acts 5:9).
They may insult him (do despite unto) (Hebrews 10:24).
They may blaspheme against him (Mark 3:29).
They may “quench” him (1 Thessalonians 5:19).
The day of redemption … This means the day of judgment in which our redemption will be completed.

1 Thessalonians 4:13 RSV