First there are raisins, then dried fruits and especially almonds, as well as ginkgo biloba, which can be found in capsule form.
What the science says: memory and concentration
Here is what published research says about the remedies mentioned above, for context—these studies address material causes, while healing belongs to Allah.
Memory and concentration
Ginkgo biloba modestly improves cognitive function in mild dementia according to meta-analyses (J Alzheimers Dis, 2015) (World J Biol Psychiatry, 2025); physical activity is the best-established protective factor against cognitive decline (JAMA Netw Open, 2024) (Br J Sports Med, 2022). Sleep, omega-3s, learning the Qur'an, and social connection all support memory. Precaution: ginkgo thins the blood (blood thinners, surgery); memory problems that interfere with daily life warrant a medical evaluation.