Tafsir of 11:47 Ma'arif al-Qur'an
قَالَ رَبِّ إِنِّىٓ أَعُوذُ بِكَ أَنْ أَسْـَٔلَكَ مَا لَيْسَ لِى بِهِۦ عِلْمٌ ۖ وَإِلَّا تَغْفِرْ لِى وَتَرْحَمْنِىٓ أَكُن مِّنَ ٱلْخَـٰسِرِينَ ﴿٤٧﴾
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.
Source: Ma'arif al-Qur'an — Mufti Muhammad Shafi. Licence: Maktaba-e-Darul-Uloom; confirm