Purpose of Life

The purpose of God in creating man hath been, and will ever be, to enable him to know his Creator and to attain His Presence. To this most excellent aim, this supreme objective, all the heavenly Books and the divinely-revealed and weighty Scriptures unequivocally bear witness. Whoso hath recognized the Day Spring of Divine guidance and entered His holy court hath drawn nigh unto God and attained His Presence, a Presence which is the real Paradise, and of which the loftiest mansions of heaven are but a symbol. Such a man hath attained the knowledge of the station of Him Who is "at the distance of two bows," Who standeth beyond the Sadratu'l-Muntaha. Whoso hath failed to recognize  Him will have condemned himself to the misery of remoteness, a remoteness which is naught but utter nothingness and the essence of the nethermost fire. Such will be his fate, though to outward seeming he may occupy the earth's loftiest seats and be established upon its most exalted throne.

Bahá’u’lláh, Gleanings from the Writings of Bahá’u’lláh, p. 70-71

The supreme cause for creating the world and all that is therein is for man to know God.

In this Day whosoever is guided by the fragrance of the raiment of His mercy to gain admittance into the pristine Abode, which is the station of recognizing the Source of divine commandments and the Dayspring of His Revelation, hath everlastingly attained unto all good. Having reached this lofty station a twofold obligation resteth upon every soul. One is to be steadfast in the Cause with such steadfastness that were all the peoples of the world to attempt to prevent him from turning to the Source of Revelation, they would be powerless to do so. The other is observance of the divine ordinances which have streamed forth from the wellspring of His heavenly-propelled Pen. For man's knowledge of God cannot develop fully and adequately save by observing whatsoever hath been ordained by Him and is set forth in His heavenly Book.

Bahá’u’lláh, Tablets of Bahá’u’lláh, p. 267

The whole duty of man in this Day is to attain that share of the flood of grace which God poureth forth for him.

Bahá’u’lláh, Gleanings from the Writings of Bahá’u’lláh, p. 8

TO BE RECITED ONCE IN TWENTY-FOUR HOURS, AT NOON: I bear witness, O my God, that Thou hast created me to know Thee and to worship Thee.

Bahá’u’lláh, Bahá’í Prayers, Short Obligatory Prayer, p. 3

. . . in this world he must prepare himself for the life beyond. That which he needs in the world of the Kingdom must be obtained here. Just as he prepared himself in the world of the matrix by acquiring forces necessary in this sphere of existence, so, likewise, the indispensable forces of the divine existence must be potentially attained in this world. What is he in need of in the Kingdom which transcends the life and limitation of this mortal sphere? That world beyond is a world of sanctity and radiance; therefore, it is necessary that in this world he should acquire these divine attributes. In that world there is need of spirituality, faith, assurance, the knowledge and love of God. These he must attain in this world so that after his ascension from the earthly to the heavenly Kingdom he shall find all that is needful in that eternal life ready for him. That divine world is manifestly a world of lights; therefore, man has need of illumination here. That is a world of love; the love of God is essential. It is a world of perfections; virtues, or perfections, must be acquired. That world is vivified by the breaths of the Holy Spirit; in this world we must seek them. That is the Kingdom of everlasting life; it must be attained during vanishing existence. By what means can man acquire these things? How shall he obtain these merciful gifts and powers? First, through the knowledge of God. Second, through the love of God. Third, through faith. Fourth, through philanthropic deeds. Fifth, through self-sacrifice. Sixth, through severance from this world. Seventh, through sanctity and holiness. Unless he acquires these forces and attains to these requirements, he will surely be deprived of the life that is eternal. But if he possesses the knowledge of God, becomes ignited through the fire of the love of God, witnesses the great and mighty signs of the Kingdom, becomes the cause of love among mankind and lives in the utmost state of sanctity and holiness, he shall surely attain to second birth, be baptized by the Holy Spirit and enjoy everlasting existence.

‘Abdu’l-Bahá, Promulgation of Universal Peace, p. 226

But the life of man is not so restricted; it is divine, eternal, not mortal and sensual. For him a spiritual existence and livelihood is prepared and ordained in the divine creative plan. His life is intended to be a life of spiritual enjoyment to which the animal can never attain. This enjoyment depends upon the acquisition of heavenly virtues. The sublimity of man is his attainment of the knowledge of God. The bliss of man is the acquiring of heavenly bestowals, which descend upon him in the outflow of the bounty of God. The happiness of man is in the fragrance of the love of God. This is the highest pinnacle of attainment in the human world.

‘Abdu’l-Bahá, The Promulgation of Universal Peace, p. 184