The Monk Nikon of Optina said the following about acquiring the gifts of the Holy Spirit:
“...We were deemed worthy to receive the gifts of the Holy Spirit at baptism. How many people remember this? It’s not enough to receive, you also need to preserve, improve, multiply, and not bury it. To do this, jealousy must be stirred up. How?
1. Read the Holy Scriptures - after all, holy books are written by the Holy Spirit, and He blows from them. No secular pleasure can give that peace, that joy that is given by the Holy Spirit. Chants, psalms.
2. Pay attention to yourself.
3. Frequently participate in the Holy Sacraments, through which the Holy Spirit is communicated to a person.
4. Frequently visiting the holy church is a place of special presence of the Holy Spirit.
5. Finally, prayer is a great thing for receiving the gifts of the Holy Spirit, especially the prayer “to the Heavenly King.” It must not only be listened to with special reverence during prayer in church, but also pronounced during work, asking for help from the Holy Spirit.”