This appears in Birkhot Hatorah, as:
אֵֽלּוּ דְבָרִים שֶׁאָדָם אוֹכֵל פֵּרוֹתֵיהֶם בָּעוֹלָם הַזֶּה וְהַקֶּֽרֶן קַיֶּֽמֶת לָעוֹלָם הַבָּא... וְהַשְׁכָּמַת בֵּית הַמִּדְרָשׁ שַׁחֲרִית וְעַרְבִית
These are precepts, the fruits of which man enjoys in this world, [while] the principal [reward] is preserved for him in the World-to-Come. ...early attendance in the House of Study morning and evening..
I believe these are derived from Shabbos 127a.
But practically speaking- what does it mean? If I go to a בית כנסת or בית תפילה for שַחֲרִית, and it starts at 8am and I get there at 7:59, do I fulfill the מצוה?
Also ,in this context, is בֵּית הַמִּדְרָשׁ the same as בית כנסת or בית תפילה? i.e. Is it about tefilla or learning?
How does one properly fulfill this?