The Hour will only come upon the worst of people


I have heard that before the Day of Resurrection there will not be any believers and Allah’s name will not be mentioned. Will this be before the Day of Resurrection or before the Dajjaal (the Anti-Christ) comes? I am very confused about this matter as I know that the number of believers will increase near the end of time and Allah’s law will be implemented in the earth. How to understand this?.