Sahih Muslim, Book 37, Hadith 108 (Muslim 5445)

'Ali reported:

Allah's Messenger (ﷺ) forbade me that I should wear a ring in this and that finger of mine, and he pointed to the middle finger and the next one.