It is narrated from Sayyiduna Ibn Umar (may Allah be pleased with them both): "When the Messenger of Allah (peace and blessings be upon him) feared that he (peace and blessings be upon him) would forget something, he (peace and blessings be upon him) would tie a thread on his blessed hand to remind himself of it."
This chain is da'if (weak) because the narrator Anbasah is weak.
It is narrated from a man of the tribe of Banu Tamim that the Messenger of Allah (peace and blessings be upon him) said: "When one of you fears that he will forget (something), let him say: 'Al-hamdu lillahi mudhakkir' (All praise is for Allah, the One who reminds)."
(I say: Here about a third of a line of the hadith has been lost from the text.)
Hadith Referenceإتحاف الخيرة المهرة بزوائد المسانيد العشرة / كتاب العلم / 381