The holy spirit is given when we come to the end of ourselves and repent for any wrong doing,knowing Gods ways are more needful than our own.We are then sealed unto the day of redemption(Ephesians 4:29-32), 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.30 And grieve not the holy Spirit of God, whereby ye are sealed unto the day of redemption.31 Let all bitterness, and wrath, and anger, and clamour, and evil speaking, be put away from you, with all malice:32 And be ye kind one to another, tenderhearted, forgiving one another, even as God for Christ’s sake hath forgiven you. (Acts 2:38-39).
There is a seal upon the people of God and it is not a visible one,for it is written as a covenant upon the hearts and minds of those who believe and follow the Son of God the Lord Jesus Christ.This seal in the last days will be a great protection over Gods people as we learn in Revelation how those who have not this seal will nor fare well at all(Revelation 9:1-4). And the fifth angel sounded, and I saw a star fall from heaven unto the earth: and to him was given the key of the bottomless pit.2 And he opened the bottomless pit; and there arose a smoke out of the pit, as the smoke of a great furnace; and the sun and the air were darkened by reason of the smoke of the pit.3 And there came out of the smoke locusts upon the earth: and unto them was given power, as the scorpions of the earth have power.4 And it was commanded them that they should not hurt the grass of the earth, neither any green thing, neither any tree; but only those men which have not the seal of God in their foreheads.
Ephesians 1:10-14, 10 That in the dispensation of the fulness of times he might gather together in one all things in Christ, both which are in heaven, and which are on earth; even in him:11 In whom also we have obtained an inheritance, being predestinated according to the purpose of him who worketh all things after the counsel of his own will:12 That we should be to the praise of his glory, who first trusted in Christ.13 In whom ye also trusted, after that ye heard the word of truth, the gospel of your salvation: in whom also after that ye believed, ye were sealed with that holy Spirit of promise,14 Which is the earnest of our inheritance until the redemption of the purchased possession, unto the praise of his glory.