It will never end humankind needs something to believe after death, thats where religion comes out to tell the people not to worry about it and obey some rules to achieved that promised heaven.
Uniquely how long humanity will exist, there will be a lot of religion. Those who do not believe can not understand, just what a believer believes. Many people are sure there is humility, comfort and all that they need in this life.