Abbas ibn Abdul Muttalib asked the Prophet what to ask Allah for and the Prophet taught him this dua. He then said ask Allah for pardon and well-being for after certainty of faith nothing better is given to anyone.