مَا كَتَبَ الطَّالِبُ الدَّرْسَ
The student did not write the lesson.
مَا فَتَحَ حَامِدٌ الْبَابَ
Hamid did not open the door.
مَا رَجَعُوا مِنَ الْمَسْجِدِ
They did not return from the mosque.
In each example, مَا comes first and the familiar past-tense structure follows it.