给定一个英文文本，请编写一段代码，找出文本中出现次数最多的单词，并输出单词和其出现次数。
文本内容，例如“This is a sample text with several words and repeated words.”
```python
text = "This is a sample text with several words and repeated words."
words_dict = {}
for word in text.split():
    if word.lower() not in words_dict:
        words_dict[word.lower()] = 0
    words_dict[word.lower()] += 1

most_common_word = max(words_dict, key=words_dict.get)

print(f"The most common word is '{most_common_word}', which appears {words_dict[most_common_word]} times.")
```

Output:
```
The most common word is 'words', which appears 2 times.
```