Mainstream Islamic teaching
Islam teaches that God is one and that worship belongs to God alone. Because of this, mainstream Islamic teaching does not accept Krishna as God or as a divine partner. The Quran does not mention Krishna by name, so his story is not part of Islamic scripture.
Could Krishna have been a prophet?
Some Muslim writers have argued that Krishna may have been a prophet or a righteous teacher, and a few groups have taught this view. These are minority positions. They are not part of mainstream Islamic doctrine, and Muslim scholars differ on the question.
Raskhan: a Muslim devotee of Krishna
The best-known example of a Muslim devotee of Krishna is the poet Raskhan. He was born into a Muslim family and is often described as having Pashtun, or Afghan, roots. His dates are usually given as 1548 to 1628, though scholars do not fully agree on them.
Raskhan took up devotion to Krishna under a Vaishnava teacher and spent his later years in Vrindavan, the town in the Braj region linked with Krishna’s childhood. His best-known work, the Premavatika, explores divine love, using Radha and Krishna as its models. His other poems focus on Krishna’s life and on love for him.
Some stories about Raskhan are told as tradition rather than verified history. A popular one says he was refused entry to a temple in Vrindavan because of his Muslim birth, and that this left him heartbroken. Other accounts say he reportedly translated the Bhagavata Purana into Persian. Treat these details as stories told about him, not as settled facts.
Why the question comes up
Krishna is one of the best-loved figures in Hinduism, and people who grew up near Hindu and Muslim neighbors often wonder how the two traditions view him. In places where the two communities lived side by side, poetry and devotion sometimes crossed the boundary, as Raskhan’s work shows.
This answer describes what the religions teach and what some devotees have written. It does not speak for every Muslim, whose beliefs vary as they do in any faith, and what any one person believes is a personal matter.