As per the hindu religion, when a person does the good & bad karmas in life then as a result, that person goes to heaven (heavenly planet of Indra) or hell to enjoy the fruits of those karmas over there. But the period of stay in this heaven or hell is determined by the quantity & quality of good & bad karmas done in one's life. After enjoying the good or bad results of the karmas in the heaven or hell, one has to return back to this earth to take birth again. On this earth a person again does good & bad karmas in life & again goes to heaven or hell to enjoy the fruits of those karmas & again returns back to this earth after enjoying those good & bad fruits over there. In this way this perpetual cycle of birth & death goes on for that person. It is very clear that there is no permanent stay in the heaven & it's temporary only. One can live over there just for the time which is determined by his good karmas done on this earth.
The above said perpetual cycle of birth & death goes on for a normal person who has not understood & have faith in God. As per Bhagwat Gita beyond this heaven is the abode of God where life is permanent. Once a person gets permission to live in that Godly abode then that person need not come back to this earth to suffer pain & sorrow in life i.e. one does not have to take rebirth again on this earth. Once God allows a person to stay in His abode then that person is relieved of the cycle of birth & death. That person living in God's abode achieves immortality & permanent bliss. Below are few verses of Bhagwat Gita which explain that only.
"trai-vidya mam soma-pah puta-papa
yajnair istva svar-gatim prarthayante
te punyam asadya surendra-lokam
asnanti divyan divi deva-bhogan" (Bhagwat Gita: Chapter Nine verse 20)
"Lord Sri Krishna said: Those who study the Vedas and drink the soma juice, seeking the heavenly planets, worship Me indirectly. Purified of sinful reactions, they take birth on the pious, heavenly planet of Indra, where they enjoy godly delights."
"te tam bhuktva svarga-lokam visalam
ksine punye martya-lokam vishanti
evam trayi-dharmam anuprapanna
gatagatam kama-kama labhante" (Bhagwat Gita: Chapter Nine verse 21)
"Lord Sri Krishna said: When they have thus enjoyed vast heavenly sense pleasures and the results of their pious activities are exhausted, they return to this mortal planet (earth) again. Thus those who seek sense enjoyments by adhering to the principles of the three Vedas achieve only repeated birth and death."
"yanti deva-vrata devan
pitrn yanti pitr-vratah
bhutani yanti bhutejya
yanti mad-yajino ’pi mam" (Bhagwat Gita: Chapter Nine verse 25)
"Lord Sri Krishna said: Those who worship the demigods will take birth among the demigods; those who worship the ancestors go to the ancestors; those who worship ghosts and spirits will take birth among such beings; and those who worship Me (Lord Sri Krishna) will live with Me."
"yat karosi yad asnasi
yaj juhosi dadasi yat
yat tapasyasi kaunteya
tat kurusva mad-arpanam" (Bhagwat Gita: Chapter Nine verse 27)
"Lord Sri Krishna said: Whatever you do, whatever you eat, whatever you offer or give away, and whatever austerities you perform—do that, O Arjuna, as an offering to Me (Lord Sri Krishna)."
vimukto mam upaisyasi" (Bhagwat Gita: Chapter Nine verse 28)
"Lord Sri Krishna said: In this way you will be freed from bondage to work (karmas) and its auspicious and inauspicious results. With your mind fixed on Me (Lord Sri Krishna) in this principle of renunciation, you will be liberated and come to Me."
So Let's pray to God (Lord Sri Krishna) always in life so that we can go to God's abode than going to heaven as we shall need to take rebirth after going to heaven while we shall get permanent life in God's abode. Let's pray to God always so that He can bless us in this & after this life. Loving & praying to God only can save us from the cycles of birth & death & from all types of miseries in life.
Jai Sri Krishna