قال رب اني اعوذ بك ان اسالك ما ليس لي به علم والا تغفر لي وترحمني اكن من الخاسرين ٤٧
قَالَ رَبِّ إِنِّىٓ أَعُوذُ بِكَ أَنْ أَسْـَٔلَكَ مَا لَيْسَ لِى بِهِۦ عِلْمٌۭ ۖ وَإِلَّا تَغْفِرْ لِى وَتَرْحَمْنِىٓ أَكُن مِّنَ ٱلْخَـٰسِرِينَ ٤٧
قَالَ
رَبِّ
اِنِّیْۤ
اَعُوْذُ
بِكَ
اَنْ
اَسْـَٔلَكَ
مَا
لَیْسَ
لِیْ
بِهٖ
عِلْمٌ ؕ
وَاِلَّا
تَغْفِرْ
لِیْ
وَتَرْحَمْنِیْۤ
اَكُنْ
مِّنَ
الْخٰسِرِیْنَ
۟
3

Mentioned in the third verse (47) is the apology tendered by Sayyidna Nuh (علیہ السلام) . In gist, it is a return to Allah in submission and entreaty, a prayer for the protection of Allah, His forgiveness for past omissions, and a request for His mercy.

From here we learn that, should one commit a mistake, let him not rely on his personal resolve to stay safe from it in the future. He should, rather, seek the protection of Allah Ta` ala and pray to Him that He is the One who can keep him safe from errors and sins.