If i borrow something from place A and then i put it back on other place but still in the same area, is that okay?. Example is in a masjid i took a quran from a shelf in the right side of the masjid. But after finished using it, i put it in another shelf but still in that masjid.
All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah, and that Muhammad, sallallaahu 'alayhi wa sallam, is His slave and Messenger.
If you take a Quran (the Mus-haf) to recite from it while it was on the shelf on the right-side of the mosque, then it is permissible for you, after finishing the recitation, to put it in any other shelf inside the mosque. There is no difference between the shelves of the mosque.
What is important is that you leave the Mus-haf inside the mosque after reciting it.
Allah knows best.
You can search for fatwa through many choices