It has been mentioned in some narrations that if you want to have the strongest memory , then recite the following Dua before you start learning the Quraan or any other material that you would like to memorise or remember

بِسْمِ اللهِ  وَسُبْحَانَ اللهِ وَلَا إِلآهَ إِلَاَّ اللهُ وَاللهُ أكْبَرُ وَلَا حَوْلَ وَلَا قُوَّة إِلَّا بِاللهِ الْعَلِيِّ الْعَظِيْمِ عَدَدَ كَلَّ حَرْفٍ وَيُكْتَبُ أَبَدَ الْلآبِدِيْنَ  وَدَهْرَ الدَّاهِرِيْنَ وَصَلّى اللهُ عَلَى سَيِّدِنَا مُحَمَّدٍ وَّعَلَى آلِهِ وَصَحْبِهِ وَسَلَّمَ

In the name of Allah, Allah is pure, there is no diety except Allah, Allah is the gretest, the is no power or might except with Allah, The exalted the mighty. We utter the words of praise and glorification for Allah to the extent of every letter of all books and people will continue to write to eternity. We thereafter send salutation and peace  upon  our master Nabi Muhammad Sallallahu Alaihi Wasallam, his family and companions.