In this paper, we study the relationship between the recurrent set and the shadowing property. We give a necessary condition for a homeomorphism restricted to its nonwandering set to have the shadowing property. Also, we consider a condition for an arbitrary homeomorphism to be a nonwandering homeomorphism. Finally, we consider homeomorphisms which cannot have the shadowing property.