This was said by the Lord…
“Possessing two things, bhikkhus, a person is placed in heaven as if carried there. What are the two things? Good behaviour and a good view. These are the two things…”
If a person possesses these two things—
Good behaviour and a good view—
When his body perishes
That wise one is reborn in heaven.