“Whose toy car is that?” Mahmoud’s mother asked.
Mahmoud hesitated, fear gripping him as he remembered taking his friend’s toy car from the park. He thought no one had seen him. However, Mahmoud quickly realized an important truth: Allah knows everything and sees everything we do.
This version improves the flow, grammar, and readability while maintaining the moral lesson. Let me know if you'd like further tweaks!