It was on episode 167:"The Bond Between Them, Use the Sacred Jewel Shard! (Part 2)". He put it into Tessaiga because they were trapped inside the stomach of a monster that Naraku planned to use to get over with them and get the shard that they had. It was the last episode before Kanketsu-Hen.