get nearest instance of game object

I need to have a function the will return a reference to the nearest instance of a prefab/game object. Nearest to my player object that is. Are there any unity functions that achieve this and if not how would i go about codeing one? Thanks in advance to any one who can help!

If they have colliders on them, you could make use of this: and sort the results by distance.