What is the ruling if a man gets sexually stimulated through no action on his own (he did not touch any body part, but he may have unintentionally come across an image that aroused him) and discharges mani?

Find answers

This would have the same ruling as a wet dream; it would not invalidate his fast, but he needs to perform ghusl.