A man told one of the salaf that he had buried some money, but he had forgotten where he had buried it.
He told him, “Go and pray,” so he went and prayed, and he remembered where it was.
It was asked of him, “How did you know that would happen”
He said, “I know that the Shaytaan will not leave him alone when he prays without reminding him of what concerns him, and the most pressing concern on this person’s mind was where he buried his money.”
(Majmoo’ al-Fataawa, 22/610)
(Read on pg 84, Ibn Rajab al-Hanbali, The Humility in Prayer. Daar Us-Sunnah Publishers. Birmingham: 2007.)