“If you know this, then know that God tests you through what He spreads before you. What He first discloses to you is His gift of command over the material order, as I shall discuss.
It is the unveiling of the sensory world which is hidden from you, so that walls and shadows do not veil you from what people are doing in their houses. However, if God has informed you of anyone’s secret, you are obliged to preserve it from exposure. For if you were to expose it and say this one is a fornicator and this one a drunkard and this one a slanderer and this one a thief, you yourself would be the greater sinner and indeed Satan would have entered into you. So act in accordance with the Divine Name al-Sattar, the Veiler. And if this person were to come to you, warn him privately about his actions and counsel him to have shame before God and not to transgress God’s limits. Turn away from this type of perception as much as possible, and occupy yourself with dhikr.
We shall explain [the means of telling] the difference between sensory and imaginational subtle perception. That is, when you see someone’s form or some created action, if you close your eyes and the perception remains with you, it is in your imagination; but if it is hidden from you, then your consciousness of it is attached to the place in which you saw it. [If it is perception of the latter kind] when you turn your attention away from it and occupy yourself with dhikr, you will move from the sensory to the imaginal level. And there descend upon you abstract intelligible ideas in sensory forms. This descent is difficult, since no one knows what is meant by these forms except a prophet, or whomever God wills among the righteous. So do not concern yourself with this. If you are offered something to drink, choose water.
If there is no water among the offerings, choose milk. And if both of them are presented to you, combine the water and the milk. This also applies to honey: Drink it. Be careful of drinking wine unless it is mixed with rainwater. Refrain from drinking it otherwise, even if it is mixed with the water of rivers and springs. Occupy yourself with dhikr until the world of imagination is lifted from you and the world of abstract meanings free of matter is revealed to you.
Occupy yourself with dhikr, remembrance, until the Remembered manifests Himself to you and calling Him to memory is effaced in the actual recollection of Him. However, this [vanishing of dhikr] is the essence not only of contemplation but also of sleep. The way to distinguish between them is that contemplation leaves its evidence and is followed by bliss, whereas sleep leaves nothing and is followed, on awakening, by remorse and the asking of forgiveness.
Then Almighty God spreads before you the degrees of the kingdom as a test. This is appointed to you as an obligation. First you will discover the secrets of the mineral world. You will become acquainted with the secret of every stone and its particular harmful and beneficial qualities. If you become enamored of this world, it will trap you, and you will be exiled from God. He will strip you of everything you held on to, and you will be lost. But if you let go and occupy yourself with dhikr and take refuge at the side of the Remembered, then He will free you from that mode and unveil the vegetal world.
Every green thing will call out to you its harmful and beneficial qualities. Let your judgment be what it was before. At the time of the unveiling of the mineral world let your nourishment be what increases heat and moisture, and at the unveiling of the vegetal world let it be what balances heat and moisture.”
Source: Ibn Arabi, Journey to the Lord of Power