"And humbled themselves before their Lord," meaning: they turned back to Him in sincere devotion.
﴿وأخبتوا إِلَى رَبهم﴾ أَي: أنابوا مُخلصين: