Both are correct.
This dilemma emerged in a tutorial this week where we were discussing the correct spelling of the word. Historically sulphur has been the typical form in British English, while sulfur is usual in American English, having emerged as a variant spelling among chemists in the 1920s.