Vain curiosity combatted by prayer

Thomas Brooks writes,

Curiosity is one of Satan's most dangerous engines, by which he keeps many souls out of their closets, yea, out of heaven. When many a poor soul begins in good earnest to look towards heaven, and to apply himself to closet duties, then Satan begins to bestir himself, and to labour with all his might, so to busy the poor soul with vain inquiries, and curious speculations, and unprofitable curiosities, that the soul hath no time for closet prayer. Ah! how well might it have been with many a man, had he but spent one quarter of that time in closet prayer, that he hath spent in curious inquiries after things that have not been fundamental to his happiness.