The chaining up of the devils in Ramadan
Question

We know that in Ramadan the devils (we seek refuge with Allah from them) are chained up. And I would like to know whether the practitioners of sihr (magic, witchcraft) – may the curse of Allah be upon them – practise their craft in this month?.
Praise be to Allah.Yes, the devils may whisper to man in Ramadan, and the practitioners of witchcraft may practise their craft during Ramadan, but that undoubtedly happens to a lesser extent than at times other than Ramadan. 
It was proven that the Prophet (peace and blessings of Allah be upon him) said: “When Ramadan begins, the gates of Paradise are opened, and the gates of Hell are closed, and the devils are chained up.” Narrated by al-Bukhaari, 3277; Muslim, 1079. According to al-Nasaa’i: “The most evil jinn are chained up.” 
This does not mean that the devils have no influence at all, rather it indicates that they become weaker in Ramadan and are not able to do what they are able to do at times other than Ramadan. 
It may be interpreted as meaning that the ones who are chained up are the most evil devils, not all of them. 
Al-Qurtubi said: If it is said, how come we see many evil actions and sins being committed in Ramadan, for if the devils were chained up, that would not happen? 
The answer is that (evil actions) are reduced on the part of those who fast meeting all the conditions of fasting and paying attention to the etiquette of fasting. 
Or some of the devils – namely the most evil ones – are chained up, not all of them, as previously mentioned in some reports. 
Or it may mean that evil actions are reduced in Ramadan, which is something that we can see. Even though evil actions happen in Ramadan, they are less than at other times. Even if all of the devils were to be chained up, that does not mean that no evil action would happen, because there are other causes of evil action besides the devils, such as evil souls, bad habits and the human devils. 
From Fath al-Baari. 
And Allah knows best.