Book Name:Shetan Ki Insan Se Dushmani
اَلصَّلٰوۃُ وَ السَّلَامُ عَلَیْكَ یَا رَسُولَ اللہ وَعَلٰی اٰلِكَ وَ اَصْحٰبِكَ یَا حَبِیْبَ اللہ
اَلصَّلٰوۃُ وَ السَّلَامُ عَلَیْكَ یَا نَبِیَّ اللہ وَعَلٰی اٰلِكَ وَ اَصْحٰبِكَ یَا نُوْرَ اللہ
نَوَيۡتُ سُنَّتَ الۡاِعۡتِكَافِ
I make intention of sunnah iʿtikāf.
In Fatāwā Shāmī:
If someone wants to eat, drink or sleep in a masjid, he should make the intention to observe iꜤtikāf and perform the dhikr of Allah for some time. Then he may proceed as he wishes (i.e. now if he wants to eat, drink or sleep, he can do so).