Forever and ever / ages of ages
Here’s what it means
Endlessly or for the fullest possible duration.
Why the Bible says it this way
The repeated time words intensify permanence beyond an ordinary long period.
An idiom is a familiar phrase whose meaning comes from the whole expression, not from reading each word by itself.