The Prophet Muhammad was shown visions of various people and occurrences on his journey from Masjid al-Haram to Masjid al-Aqsa by Allah through the angel Jibril. These included people being punished for sins like not paying zakat or performing prayers, as well as metaphors like a bull struggling to return through a small exit after speaking badly. The visions highlighted the realities and consequences of various human acts and sins.