If you unintentionally carried a book or material into the bathroom, it is recommended to handle it with care and avoid placing it on the floor or in an unclean area. After leaving the bathroom, cleanse the book or material and its cover if necessary, as per Islamic cleanliness guidelines.