Short answer

Prayer in Islam is not a guarantee of riches or top marks. It is worship, owed to the One who made us. Worldly gifts go to everyone. The Qur'an says: "Of the bounties of thy Lord We bestow freely on all" (17:20). So a classmate who never prays can do very well, and Islam expects that. The Prophet (ﷺ) himself slept on a palm-leaf mat while the emperors of Rome and Persia lived in luxury. Islam measures success another way. The one saved from the Fire and admitted to the Garden "will have attained the object (of Life)" (3:185). Islam never said dua replaces effort either: a person "can have nothing but what he strives for" (53:39). And the case for Islam does not rest on answered prayers. It rests on the Qur'an and the Prophet (ﷺ). Prayer still does what it promises. It keeps a person from wrong (29:45), and in remembering God (﷾) hearts find rest (13:28).

Read the full explanation

See your saved pages