It is to the extent that one is made privy to it. This, then, is the knowledge of the awliyāʾ (walī / awliyāʾ, friend[s] of God). They learn the wondrous properties that Allah has placed in the letters and names which affect things in the realms of ḥaqīqa (inner reality) and ḥayāl (the imaginal world). Although this is, in the absolute sense, something blameworthy, when it is restricted it becomes something praiseworthy. This is what is called karāma (a saintly wonder) and extraordinary phenomena. However, even if extraordinary things manifest from them, these are not called magic; rather, they are called karāma. According to the scholars, this is itself magic. The magicians of Moses (Hz. Mūsā) continued in the science of magic despite believing in the Lord of Moses and Aaron (Hz. Hārūn), entering into Allah's religion, and preferring the Hereafter to the dunya (this world). Even though they knew magic, they accepted the punishment they saw from Allah at the hand of Pharaoh. According to us, the science of alchemy (ʿilm al-sīmiyāʾ) is derived from the word al-simatiyy, which means 'sign.' That is, it is the science of the signs produced by the effects of all letters, names, and words. (Futūḥāt, II, 132)
Karāma comes from Allah's Name al-Barr. For this reason, it is only from among His servants that...
