You should watch:

Stargate Atlantis: Season 1 Episode 18: The Gift

Perhaps you might want to check out The Order of Watching Stargate