Which sentence is in the passive voice?

  1. Ahmad wrote the letter.
  2. Ahmad will write the letter.
  3. The letter was written by Ahmad.
  4. Ahmad is writing a letter.